Difference between revisions of "ConstructorInfo"
From Xojo Documentation
m |
(→Examples) |
||
Line 17: | Line 17: | ||
</dynamicTable> | </dynamicTable> | ||
− | == | + | == Sample Code == |
− | This | + | This code uses the Invoke method to call the FolderItem constructor that takes no parameters: |
− | |||
<rbcode> | <rbcode> | ||
Dim ti As Introspection.TypeInfo = GetTypeInfo(FolderItem) | Dim ti As Introspection.TypeInfo = GetTypeInfo(FolderItem) |
Revision as of 21:11, 22 January 2019
Class (inherits from MemberInfo)
Contains information about the constructors for a class via the Introspection system.
Properties | ||||
|
Methods | |||
|
Sample Code
This code uses the Invoke method to call the FolderItem constructor that takes no parameters:
Dim ti As Introspection.TypeInfo = GetTypeInfo(FolderItem)
Dim ci() As Introspection.ConstructorInfo = ti.GetConstructors
Dim f As FolderItem
f = ci(0).Invoke
Dim ci() As Introspection.ConstructorInfo = ti.GetConstructors
Dim f As FolderItem
f = ci(0).Invoke
See Also
Introspection module; AttributeInfo, MemberInfo, MethodInfo, ObjectIterator, ParameterInfo, PropertyInfo, TypeInfo classes; GetTypeInfo function.