# Invokable_IStorageFaultGrain_GrainReference_C94BA77C Methods

[Type overview](/orleans/docs/api/csharp/microsoft.orleans.testinghost/orleanscodegen.orleans.testinghost.invokable-istoragefaultgrain-grainreference-c94ba77c/)

## Dispose {#dispose-abbd999d}

[Dedicated page](/orleans/docs/api/csharp/microsoft.orleans.testinghost/orleanscodegen.orleans.testinghost.invokable-istoragefaultgrain-grainreference-c94ba77c/methods/dispose-abbd999d/)

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

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

## GetActivityName {#getactivityname-4d0857d3}

[Dedicated page](/orleans/docs/api/csharp/microsoft.orleans.testinghost/orleanscodegen.orleans.testinghost.invokable-istoragefaultgrain-grainreference-c94ba77c/methods/getactivityname-4d0857d3/)

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

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

## GetArgument(int) {#getargument-int-667cba39}

[Dedicated page](/orleans/docs/api/csharp/microsoft.orleans.testinghost/orleanscodegen.orleans.testinghost.invokable-istoragefaultgrain-grainreference-c94ba77c/methods/getargument-int-667cba39/)

```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-508b66d3}

[Dedicated page](/orleans/docs/api/csharp/microsoft.orleans.testinghost/orleanscodegen.orleans.testinghost.invokable-istoragefaultgrain-grainreference-c94ba77c/methods/getargumentcount-508b66d3/)

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

Gets the number of arguments.

## GetInterfaceName {#getinterfacename-3dad48d1}

[Dedicated page](/orleans/docs/api/csharp/microsoft.orleans.testinghost/orleanscodegen.orleans.testinghost.invokable-istoragefaultgrain-grainreference-c94ba77c/methods/getinterfacename-3dad48d1/)

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

Gets the full interface name.

## GetInterfaceType {#getinterfacetype-361041d7}

[Dedicated page](/orleans/docs/api/csharp/microsoft.orleans.testinghost/orleanscodegen.orleans.testinghost.invokable-istoragefaultgrain-grainreference-c94ba77c/methods/getinterfacetype-361041d7/)

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

Gets the interface type.

## GetMethod {#getmethod-6c691270}

[Dedicated page](/orleans/docs/api/csharp/microsoft.orleans.testinghost/orleanscodegen.orleans.testinghost.invokable-istoragefaultgrain-grainreference-c94ba77c/methods/getmethod-6c691270/)

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

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

## GetMethodName {#getmethodname-0ca83663}

[Dedicated page](/orleans/docs/api/csharp/microsoft.orleans.testinghost/orleanscodegen.orleans.testinghost.invokable-istoragefaultgrain-grainreference-c94ba77c/methods/getmethodname-0ca83663/)

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

Gets the method name.

## GetTarget {#gettarget-40930592}

[Dedicated page](/orleans/docs/api/csharp/microsoft.orleans.testinghost/orleanscodegen.orleans.testinghost.invokable-istoragefaultgrain-grainreference-c94ba77c/methods/gettarget-40930592/)

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

Gets the invocation target.

### Returns

The invocation target.

## SetArgument(int, object) {#setargument-int-object-7d7125de}

[Dedicated page](/orleans/docs/api/csharp/microsoft.orleans.testinghost/orleanscodegen.orleans.testinghost.invokable-istoragefaultgrain-grainreference-c94ba77c/methods/setargument-int-object-7d7125de/)

```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-39a61fa3}

[Dedicated page](/orleans/docs/api/csharp/microsoft.orleans.testinghost/orleanscodegen.orleans.testinghost.invokable-istoragefaultgrain-grainreference-c94ba77c/methods/settarget-orleans-serialization-invocation-itargetholder-39a61fa3/)

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