Class

Xojo.Introspection.MemberInfo


Warning

This item was deprecated in version 2020r2. Please use MemberInfo as a replacement.

Description

The superclass for many of the Introspection classes.

Properties

Name

Type

Read-Only

Shared

IsPrivate

Boolean

✓

IsProtected

Boolean

✓

IsPublic

Boolean

✓

Name

Text

✓

Methods

Name

Parameters

Returns

Shared

GetAttributes

AttributeInfo

Parameters

ParameterInfo

Property descriptions


Xojo.Introspection.MemberInfo.IsPrivate

IsPrivate As Boolean

Checks if the item has private scope.

This property is read-only.


Xojo.Introspection.MemberInfo.IsProtected

IsProtected As Boolean

Checks if the item has protected scope.

This property is read-only.


Xojo.Introspection.MemberInfo.IsPublic

IsPublic As Boolean

Checks if the item has public scope.

This property is read-only.


Xojo.Introspection.MemberInfo.Name

Name As Text

The name of the item.

This property is read-only.

Gets the names of methods on a class:

Using Xojo.Introspection

Var obj As New Class1
Var info As TypeInfo = GetType(obj)
Var methods() As MethodInfo = info.Methods

Var methodNames() As Text
For Each m As MethodInfo In methods
  methodNames.AddRow(m.Name)
Next

Method descriptions


Xojo.Introspection.MemberInfo.GetAttributes

GetAttributes As AttributeInfo

Gets the attributes for the associated item.

The following code gets the attributes for the window containing the code:

Var myAttributes() As Introspection.AttributeInfo
myAttributes = GetType(Self).GetAttributes

Xojo.Introspection.MemberInfo.Parameters

Parameters As ParameterInfo

Gets the parameters for the member.

Compatibility

All project types on all supported operating systems.