Difference between revisions of "MemberInfo"

From Xojo Documentation

 
Line 13: Line 13:
 
{{Property | name=Name | type=String | readonly=yes | description=( String)  The name of the item. }}
 
{{Property | name=Name | type=String | readonly=yes | description=( String)  The name of the item. }}
 
</dynamicTable>
 
</dynamicTable>
 
  
 
<dynamicTable id="Methods" class="methodTable" title="Methods" columns="3">
 
<dynamicTable id="Methods" class="methodTable" title="Methods" columns="3">

Latest revision as of 01:07, 6 August 2021

Class (inherits from Object)

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

Properties
IsPrivate fa-lock-32.png IsPublic fa-lock-32.png
IsProtected fa-lock-32.png Name fa-lock-32.png
Methods
GetAttributes

Examples

The following reports the name of the class instance.

Var d As New Date
Var t As Introspection.TypeInfo = Introspection.GetType(d)
MessageBox("My class name is " + t.Name + ".")

The following gets the attributes of window1.

Var myAttributes() As Introspection.AttributeInfo= _
Introspection.GetType(Window1).GetAttributes

See Also

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

Xojo.Introspection