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

</div>

Class

# Xojo.Introspection.ConstructorInfo

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

<div class="warning">

<div class="title">

Warning

</div>

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

</div>

## Description

Provides information on the constructors of a class instance using introspection.

## Properties

<div class="rst-class">

table-centered_columns_3_and_4

</div>

| Name                                                          | Type                               | Read-Only | Shared |
|---------------------------------------------------------------|------------------------------------|-----------|--------|
| `IsPrivate<xojo.introspection.constructorinfo.isprivate>`     | `Boolean</api/data_types/boolean>` | ✓         |        |
| `IsProtected<xojo.introspection.constructorinfo.isprotected>` | `Boolean</api/data_types/boolean>` | ✓         |        |
| `IsPublic<xojo.introspection.constructorinfo.ispublic>`       | `Boolean</api/data_types/boolean>` | ✓         |        |
| `Name<xojo.introspection.constructorinfo.name>`               | `Text</api/deprecated/text>`       | ✓         |        |

## Methods

<div class="rst-class">

table-centered_column_4

</div>

| Name                                                              | Parameters                                                                        | Returns                                                    | Shared |
|-------------------------------------------------------------------|-----------------------------------------------------------------------------------|------------------------------------------------------------|--------|
| `GetAttributes<xojo.introspection.constructorinfo.getattributes>` |                                                                                   | `AttributeInfo</api/language/introspection/attributeinfo>` |        |
| `Invoke<xojo.introspection.constructorinfo.invoke>`               | `Optional</api/language/optional>` params() As `Variant</api/data_types/variant>` | `Variant</api/data_types/variant>`                         |        |
| `Parameters<xojo.introspection.constructorinfo.parameters>`       |                                                                                   | `ParameterInfo</api/language/introspection/parameterinfo>` |        |

## Property descriptions

<div id="xojo.introspection.constructorinfo.isprivate">

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

</div>

<div class="rst-class">

forsearch

</div>

Xojo.Introspection.ConstructorInfo.IsPrivate

**IsPrivate** As `Boolean</api/data_types/boolean>`

Checks if the item has private scope.

This property is read-only.

<div id="xojo.introspection.constructorinfo.isprotected">

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

</div>

<div class="rst-class">

forsearch

</div>

Xojo.Introspection.ConstructorInfo.IsProtected

**IsProtected** As `Boolean</api/data_types/boolean>`

Checks if the item has protected scope.

This property is read-only.

<div id="xojo.introspection.constructorinfo.ispublic">

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

</div>

<div class="rst-class">

forsearch

</div>

Xojo.Introspection.ConstructorInfo.IsPublic

**IsPublic** As `Boolean</api/data_types/boolean>`

Checks if the item has public scope.

This property is read-only.

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

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

</div>

<div class="rst-class">

forsearch

</div>

Xojo.Introspection.ConstructorInfo.Name

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

The name of the item.

This property is read-only.

Gets the names of methods on a class:

``` xojo
Using Xojo.Introspection

Var obj As New Class1
Var info As TypeInfo = GetType(obj)
Var methods() As MethodInfo = info.Methods

Var methodNames() As Text
For Each m As MethodInfo In methods
  methodNames.AddRow(m.Name)
Next
```

## Method descriptions

<div id="xojo.introspection.constructorinfo.getattributes">

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

</div>

<div class="rst-class">

forsearch

</div>

Xojo.Introspection.ConstructorInfo.GetAttributes

**GetAttributes** As `AttributeInfo</api/language/introspection/attributeinfo>`

Gets the attributes for the associated item.

The following code gets the attributes for the window containing the code:

``` xojo
Var myAttributes() As Introspection.AttributeInfo
myAttributes = GetType(Self).GetAttributes
```

<div id="xojo.introspection.constructorinfo.invoke">

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

</div>

<div class="rst-class">

forsearch

</div>

Xojo.Introspection.ConstructorInfo.Invoke

**Invoke**(`Optional</api/language/optional>` params() As `Variant</api/data_types/variant>`) As `Variant</api/data_types/variant>`

Creates a new instance and invokes the target constructor on the class instance, passing in the specified parameters. Returns an Auto containing the data type of the object.

<div id="xojo.introspection.constructorinfo.parameters">

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

</div>

<div class="rst-class">

forsearch

</div>

Xojo.Introspection.ConstructorInfo.Parameters

**Parameters** As `ParameterInfo</api/language/introspection/parameterinfo>`

Gets the parameters for the member.

## Compatibility

All project types on all supported operating systems.
