Keyword

# GetTypeInfo

<div class="rst-class">

forsearch

</div>

Introspection

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

## Description

Returns a `TypeInfo</api/language/introspection/typeinfo>` object for the passed object type.

## Usage

``` xojo
result = GetTypeInfo(objectType)
```

| Part       | Type                                             | Description                                                                                           |
|------------|--------------------------------------------------|-------------------------------------------------------------------------------------------------------|
| result     | `TypeInfo</api/language/introspection/typeinfo>` | The `TypeInfo</api/language/introspection/typeinfo>` object for the passed object type.               |
| objectType | Object Class                                     | The object for which you want to obtain `TypeInfo</api/language/introspection/typeinfo>` information. |

## Sample code

Get TypeInfo for a class called Class1:

``` xojo
Var ti As Introspection.TypeInfo = GetTypeInfo(Class1)
```

## Compatibility

|                       |     |
|-----------------------|-----|
| **Project Types**     | All |
| **Operating Systems** | All |

<div class="seealso">

`Introspection</api/language/introspection/introspection>` module; `AttributeInfo</api/language/introspection/attributeinfo>`, `ConstructorInfo</api/language/introspection/constructorinfo>`, `MemberInfo</api/language/introspection/memberinfo>`, `MethodInfo</api/language/introspection/methodinfo>`, `ObjectIterator</api/language/introspection/objectiterator>`, `ParameterInfo</api/language/introspection/parameterinfo>`, `PropertyInfo</api/language/introspection/propertyinfo>`, `TypeInfo</api/language/introspection/typeinfo>` classes.

</div>
