Class
Xojo.Introspection.MethodInfo
Warning
This item was deprecated in version 2020r2. Please use MethodInfo as a replacement.
Description
Provides information on the methods of a class instance using introspection.
Properties
| Name | Type | Read-Only | Shared | 
|---|---|---|---|
| ✓ | |||
| ✓ | |||
| ✓ | |||
| ✓ | |||
| ✓ | |||
| ✓ | 
Methods
| Name | Parameters | Returns | Shared | 
|---|---|---|---|
Property descriptions
Xojo.Introspection.MethodInfo.IsPrivate
IsPrivate As Boolean
Checks if the item has private scope.
This property is read-only.
Xojo.Introspection.MethodInfo.IsProtected
IsProtected As Boolean
Checks if the item has protected scope.
This property is read-only.
Xojo.Introspection.MethodInfo.IsPublic
IsPublic As Boolean
Checks if the item has public scope.
This property is read-only.
Xojo.Introspection.MethodInfo.IsShared
IsShared As Boolean
Checks if this is a shared method.
This property is read-only.
Xojo.Introspection.MethodInfo.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
Xojo.Introspection.MethodInfo.ReturnType
ReturnType As TypeInfo
The return type of the method.
This property is read-only.
Method descriptions
Xojo.Introspection.MethodInfo.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.MethodInfo.Parameters
Parameters As ParameterInfo
Gets the parameters for the member.
Compatibility
All project types on all supported operating systems.