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

</div>

Class

# Xojo.Introspection.MethodInfo

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

<div class="warning">

<div class="title">

Warning

</div>

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

</div>

## Description

Provides information on the methods 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.methodinfo.isprivate>`     | `Boolean</api/data_types/boolean>`               | ✓         |        |
| `IsProtected<xojo.introspection.methodinfo.isprotected>` | `Boolean</api/data_types/boolean>`               | ✓         |        |
| `IsPublic<xojo.introspection.methodinfo.ispublic>`       | `Boolean</api/data_types/boolean>`               | ✓         |        |
| `IsShared<xojo.introspection.methodinfo.isshared>`       | `Boolean</api/data_types/boolean>`               | ✓         |        |
| `Name<xojo.introspection.methodinfo.name>`               | `Text</api/deprecated/text>`                     | ✓         |        |
| `ReturnType<xojo.introspection.methodinfo.returntype>`   | `TypeInfo</api/language/introspection/typeinfo>` | ✓         |        |

## Methods

<div class="rst-class">

table-centered_column_4

</div>

| Name                                                         | Parameters | Returns                                                    | Shared |
|--------------------------------------------------------------|------------|------------------------------------------------------------|--------|
| `GetAttributes<xojo.introspection.methodinfo.getattributes>` |            | `AttributeInfo</api/language/introspection/attributeinfo>` |        |
| `Parameters<xojo.introspection.methodinfo.parameters>`       |            | `ParameterInfo</api/language/introspection/parameterinfo>` |        |

## Property descriptions

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

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

</div>

<div class="rst-class">

forsearch

</div>

Xojo.Introspection.MethodInfo.IsPrivate

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

Checks if the item has private scope.

This property is read-only.

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

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

</div>

<div class="rst-class">

forsearch

</div>

Xojo.Introspection.MethodInfo.IsProtected

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

Checks if the item has protected scope.

This property is read-only.

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

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

</div>

<div class="rst-class">

forsearch

</div>

Xojo.Introspection.MethodInfo.IsPublic

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

Checks if the item has public scope.

This property is read-only.

<div id="xojo.introspection.methodinfo.isshared">

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

</div>

<div class="rst-class">

forsearch

</div>

Xojo.Introspection.MethodInfo.IsShared

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

Checks if this is a shared method.

This property is read-only.

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

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

</div>

<div class="rst-class">

forsearch

</div>

Xojo.Introspection.MethodInfo.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
```

<div id="xojo.introspection.methodinfo.returntype">

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

</div>

<div class="rst-class">

forsearch

</div>

Xojo.Introspection.MethodInfo.ReturnType

**ReturnType** As `TypeInfo</api/language/introspection/typeinfo>`

The return type of the method.

This property is read-only.

## Method descriptions

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

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

</div>

<div class="rst-class">

forsearch

</div>

Xojo.Introspection.MethodInfo.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.methodinfo.parameters">

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

</div>

<div class="rst-class">

forsearch

</div>

Xojo.Introspection.MethodInfo.Parameters

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

Gets the parameters for the member.

## Compatibility

All project types on all supported operating systems.
