<div class="meta" robots="noindex">

</div>

Class

# Xojo.Introspection.AttributeInfo

---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

<div class="warning">

<div class="title">

Warning

</div>

This item was deprecated in version 2020r2. Please use `AttributeInfo</api/language/introspection/attributeinfo>` as a replacement.

</div>

## Description

Provides information on the attributes of a class instance, method or property using introspection.

## Properties

<div class="rst-class">

table-centered_columns_3_and_4

</div>

| Name                                            | Type                         | Read-Only | Shared |
|-------------------------------------------------|------------------------------|-----------|--------|
| `Name<xojo.introspection.attributeinfo.name>`   | `Text</api/deprecated/text>` |           |        |
| `Value<xojo.introspection.attributeinfo.value>` | `Auto</api/deprecated/auto>` |           |        |

## Property descriptions

<div id="xojo.introspection.attributeinfo.name">

---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

</div>

<div class="rst-class">

forsearch

</div>

Xojo.Introspection.AttributeInfo.Name

**Name** As `Text</api/deprecated/text>`

The name of the attribute.

This code gets the names of all the attributes on Class1:

``` xojo
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
```

<div id="xojo.introspection.attributeinfo.value">

---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

</div>

<div class="rst-class">

forsearch

</div>

Xojo.Introspection.AttributeInfo.Value

**Value** As `Auto</api/deprecated/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.
