Difference between revisions of "MemberInfo.Name"
From Xojo Documentation
(SMBot: new page by automated transformation) |
|||
(8 intermediate revisions by 4 users not shown) | |||
Line 5: | Line 5: | ||
| scope=public | | scope=public | ||
| type=[[String]] | | type=[[String]] | ||
+ | | readonly=yes | ||
| platform=all | | platform=all | ||
}} | }} | ||
− | The name of the item. | + | {{Description |
+ | |text = The name of the item. This is only the class name. To get the full namespace path, use FullName instead.}} | ||
+ | |||
+ | ==Sample Code== | ||
+ | This code gets the list of properties for the passed type instance. | ||
+ | <rbcode> | ||
+ | Var d As DateTime = DateTime.Now | ||
+ | For Each prop As Introspection.PropertyInfo In Introspection.GetType(d).GetProperties | ||
+ | ListBox1.AddRow(prop.Name) | ||
+ | Next | ||
+ | </rbcode> |
Latest revision as of 18:54, 14 July 2020
Read-Only Property (As String )
The name of the item. This is only the class name. To get the full namespace path, use FullName instead.
Sample Code
This code gets the list of properties for the passed type instance.