# Invokable_ILeaseProvider_GrainReference_ACF8E0DD Methods

[Type overview](/orleans/docs/api/csharp/microsoft.orleans.runtime/orleanscodegen.orleans.leaseproviders.invokable-ileaseprovider-grainreference-acf8e0dd/)

## Dispose {#dispose-4216cba7}

[Dedicated page](/orleans/docs/api/csharp/microsoft.orleans.runtime/orleanscodegen.orleans.leaseproviders.invokable-ileaseprovider-grainreference-acf8e0dd/methods/dispose-4216cba7/)

```csharp
public override void Dispose()
```

Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.

## GetActivityName {#getactivityname-5e3187e1}

[Dedicated page](/orleans/docs/api/csharp/microsoft.orleans.runtime/orleanscodegen.orleans.leaseproviders.invokable-ileaseprovider-grainreference-acf8e0dd/methods/getactivityname-5e3187e1/)

```csharp
public override string GetActivityName()
```

Gets the activity name, which refers to both the interface name and method name.

## GetArgument(int) {#getargument-int-7c63371b}

[Dedicated page](/orleans/docs/api/csharp/microsoft.orleans.runtime/orleanscodegen.orleans.leaseproviders.invokable-ileaseprovider-grainreference-acf8e0dd/methods/getargument-int-7c63371b/)

```csharp
public override object GetArgument(int index)
```

Gets the argument at the specified index.

### Parameters

- `index` (`int`): The argument index.

### Returns

The argument at the specified index.

## GetArgumentCount {#getargumentcount-8494e2b1}

[Dedicated page](/orleans/docs/api/csharp/microsoft.orleans.runtime/orleanscodegen.orleans.leaseproviders.invokable-ileaseprovider-grainreference-acf8e0dd/methods/getargumentcount-8494e2b1/)

```csharp
public override int GetArgumentCount()
```

Gets the number of arguments.

## GetInterfaceName {#getinterfacename-81ba809b}

[Dedicated page](/orleans/docs/api/csharp/microsoft.orleans.runtime/orleanscodegen.orleans.leaseproviders.invokable-ileaseprovider-grainreference-acf8e0dd/methods/getinterfacename-81ba809b/)

```csharp
public override string GetInterfaceName()
```

Gets the full interface name.

## GetInterfaceType {#getinterfacetype-49938f45}

[Dedicated page](/orleans/docs/api/csharp/microsoft.orleans.runtime/orleanscodegen.orleans.leaseproviders.invokable-ileaseprovider-grainreference-acf8e0dd/methods/getinterfacetype-49938f45/)

```csharp
public override Type GetInterfaceType()
```

Gets the interface type.

## GetMethod {#getmethod-af5b2246}

[Dedicated page](/orleans/docs/api/csharp/microsoft.orleans.runtime/orleanscodegen.orleans.leaseproviders.invokable-ileaseprovider-grainreference-acf8e0dd/methods/getmethod-af5b2246/)

```csharp
public override MethodInfo GetMethod()
```

Gets the method info object, which may be `null`.

## GetMethodName {#getmethodname-eb1894dd}

[Dedicated page](/orleans/docs/api/csharp/microsoft.orleans.runtime/orleanscodegen.orleans.leaseproviders.invokable-ileaseprovider-grainreference-acf8e0dd/methods/getmethodname-eb1894dd/)

```csharp
public override string GetMethodName()
```

Gets the method name.

## GetTarget {#gettarget-61c8b374}

[Dedicated page](/orleans/docs/api/csharp/microsoft.orleans.runtime/orleanscodegen.orleans.leaseproviders.invokable-ileaseprovider-grainreference-acf8e0dd/methods/gettarget-61c8b374/)

```csharp
public override object GetTarget()
```

Gets the invocation target.

### Returns

The invocation target.

## SetArgument(int, object) {#setargument-int-object-307915f4}

[Dedicated page](/orleans/docs/api/csharp/microsoft.orleans.runtime/orleanscodegen.orleans.leaseproviders.invokable-ileaseprovider-grainreference-acf8e0dd/methods/setargument-int-object-307915f4/)

```csharp
public override void SetArgument(int index, object value)
```

Sets the argument at the specified index.

### Parameters

- `index` (`int`): The argument index.
- `value` (`object`): The argument value

## SetTarget(ITargetHolder) {#settarget-orleans-serialization-invocation-itargetholder-239cc645}

[Dedicated page](/orleans/docs/api/csharp/microsoft.orleans.runtime/orleanscodegen.orleans.leaseproviders.invokable-ileaseprovider-grainreference-acf8e0dd/methods/settarget-orleans-serialization-invocation-itargetholder-239cc645/)

```csharp
public override void SetTarget(ITargetHolder holder)
```

Sets the invocation target from an instance of [ITargetHolder](/orleans/docs/api/csharp/microsoft.orleans.serialization/orleans.serialization.invocation.itargetholder/).

### Parameters

- `holder` (`ITargetHolder`): The invocation target.
