Difference between revisions of "PropertyInfo"
From Xojo Documentation
(→Examples) |
|||
Line 15: | Line 15: | ||
</dynamicTable> | </dynamicTable> | ||
<dynamicTable id="Methods" super="MemberInfo" class="methodTable" title="Methods" columns="2"> | <dynamicTable id="Methods" super="MemberInfo" class="methodTable" title="Methods" columns="2"> | ||
− | {{Method | name=Value | params=base as [[Object]],[[Assigns]] value as [[Variant]] | returntype=[[Variant]] | description=Value ( base As Object, Assigns value As Variant )
Gets or sets the value of the property, given a property description and an instance of the property's class }} | + | {{Method | name=Value | params=base as [[Object]], [[Assigns]] value as [[Variant]] | returntype=[[Variant]] | description=Value (base As Object, Assigns value As Variant)
Gets or sets the value of the property, given a property description and an instance of the property's class.}} |
</dynamicTable> | </dynamicTable> | ||
Latest revision as of 21:44, 1 April 2021
Class (inherits from MemberInfo)
Used to get information about properties via the Introspection system.
Properties | |||||||||
|
Methods | ||
|
Examples
This example gets the list of properties for the passed type instance.
Var d As New DateTime = DateTime.Now
Var myProperties() As Introspection.PropertyInfo = Introspection.GetType(d).GetProperties
For Each prop As Introspection.PropertyInfo In myProperties
ListBox1.AddRow(prop.Name)
Next
Var myProperties() As Introspection.PropertyInfo = Introspection.GetType(d).GetProperties
For Each prop As Introspection.PropertyInfo In myProperties
ListBox1.AddRow(prop.Name)
Next
See Also
Introspection module; AttributeInfo, ConstructorInfo, MemberInfo, MethodInfo, ObjectIterator, ParameterInfo, TypeInfo classes; GetTypeInfo function.