MethodInfo

From Xojo Documentation

Revision as of 15:33, 18 March 2021 by PLefebvre (talk | contribs) (ReturnType is read-only)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
You are currently browsing the old Xojo documentation site. Please visit the new Xojo documentation site!

Class (inherits from MemberInfo)

Provides information on the methods of the class instance via the Introspection system.

Properties
IsPrivate fa-lock-32.png IsPublic fa-lock-32.png Name fa-lock-32.png
IsProtected fa-lock-32.png IsShared fa-lock-32.png ReturnType fa-lock-32.png


Methods
GetAttributes GetParameters Invoke

Examples

The following gets the methods of the Date class instance:

Var d As New DateTime
Var myDbMethods() As Introspection.MethodInfo = _
Introspection.GetType(d).GetMethods
For Each method As Introspection.MethodInfo In MyDbMethods
Listbox1.AddRow(method.Name)
Next

See Also

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

Xojo.Introspection