MemberInfo

From Xojo Documentation

Revision as of 18:55, 19 November 2009 by Npalardy (talk | contribs) (1 revision)
You are currently browsing the old Xojo documentation site. Please visit the new Xojo documentation site!


Description

MemberInfo is the super class for the AttributeInfo, MethodInfo, PropertyInfo, and TypeInfo classes in the Introspection system.


Super Class

Object

Properties

Name Type Description
IsPrivate
Introduced 2008r3
Boolean If True, the item has Private scope.
IsProtected
Introduced 2008r3
Boolean Is True, the item has Protected scope.
IsPublic
Introduced 2008r3
Boolean If True, the item has Public scope.
Name String The name of the item.


Methods

Name Return Type Description
GetAttributes AttributeInfo() Returns an array of AttributeInfo objects.


Examples

The following reports the name of the class instance.

Dim d as New Date
Dim t as Introspection.TypeInfo = Introspection.GetType(d)


MsgBox "My class name is "+t.Name+"."

The following gets the attributes of window1.

Dim myAttributes() as Introspection.AttributeInfo= [[_|_]]
Introspection.GetType(window1).GetAttributes


See Also

Introspection module; AttributeInfo, ConstructorInfo, MethodInfo, ObjectIterator, ParameterInfo, PropertyInfo, TypeInfo classes; GetTypeInfo function.