Class
Xojo.Introspection.AttributeInfo
Warning
This item was deprecated in version 2020r2. Please use AttributeInfo as a replacement.
Description
Provides information on the attributes of a class instance, method or property using introspection.
Property descriptions
Xojo.Introspection.AttributeInfo.Name
Name As Text
The name of the attribute.
This code gets the names of all the attributes on Class1:
Using Xojo.Introspection
Var obj As New Class1
Var info As TypeInfo = GetType(obj)
Var attrs() As AttributeInfo = info.GetAttributes
Var attributeNames() As Text
For Each a As AttributeInfo In attrs
attributeNames.AddRow(a.Name)
Next
Xojo.Introspection.AttributeInfo.Value
Value As Auto
The optional value of the attribute.
Notes
Attributes are added to project items, methods, properties, constants, etc. by using the "Advanced" tab of the Inspector.
Compatibility
All project types on all supported operating systems.