# Invokable_IStorageFaultGrain_GrainReference_1150D526 Methods

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

## Dispose {#dispose-4798385d}

[Dedicated page](/orleans/docs/api/csharp/microsoft.orleans.testinghost/orleanscodegen.orleans.testinghost.invokable-istoragefaultgrain-grainreference-1150d526/methods/dispose-4798385d/)

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

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

## GetActivityName {#getactivityname-69ecbacf}

[Dedicated page](/orleans/docs/api/csharp/microsoft.orleans.testinghost/orleanscodegen.orleans.testinghost.invokable-istoragefaultgrain-grainreference-1150d526/methods/getactivityname-69ecbacf/)

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

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

## GetArgument(int) {#getargument-int-40dc0389}

[Dedicated page](/orleans/docs/api/csharp/microsoft.orleans.testinghost/orleanscodegen.orleans.testinghost.invokable-istoragefaultgrain-grainreference-1150d526/methods/getargument-int-40dc0389/)

```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-a8353e47}

[Dedicated page](/orleans/docs/api/csharp/microsoft.orleans.testinghost/orleanscodegen.orleans.testinghost.invokable-istoragefaultgrain-grainreference-1150d526/methods/getargumentcount-a8353e47/)

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

Gets the number of arguments.

## GetInterfaceName {#getinterfacename-c91e51e5}

[Dedicated page](/orleans/docs/api/csharp/microsoft.orleans.testinghost/orleanscodegen.orleans.testinghost.invokable-istoragefaultgrain-grainreference-1150d526/methods/getinterfacename-c91e51e5/)

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

Gets the full interface name.

## GetInterfaceType {#getinterfacetype-0714d943}

[Dedicated page](/orleans/docs/api/csharp/microsoft.orleans.testinghost/orleanscodegen.orleans.testinghost.invokable-istoragefaultgrain-grainreference-1150d526/methods/getinterfacetype-0714d943/)

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

Gets the interface type.

## GetMethod {#getmethod-0ae00004}

[Dedicated page](/orleans/docs/api/csharp/microsoft.orleans.testinghost/orleanscodegen.orleans.testinghost.invokable-istoragefaultgrain-grainreference-1150d526/methods/getmethod-0ae00004/)

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

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

## GetMethodName {#getmethodname-6c5db1ef}

[Dedicated page](/orleans/docs/api/csharp/microsoft.orleans.testinghost/orleanscodegen.orleans.testinghost.invokable-istoragefaultgrain-grainreference-1150d526/methods/getmethodname-6c5db1ef/)

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

Gets the method name.

## GetTarget {#gettarget-965e8b82}

[Dedicated page](/orleans/docs/api/csharp/microsoft.orleans.testinghost/orleanscodegen.orleans.testinghost.invokable-istoragefaultgrain-grainreference-1150d526/methods/gettarget-965e8b82/)

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

Gets the invocation target.

### Returns

The invocation target.

## SetArgument(int, object) {#setargument-int-object-1a3b6b9e}

[Dedicated page](/orleans/docs/api/csharp/microsoft.orleans.testinghost/orleanscodegen.orleans.testinghost.invokable-istoragefaultgrain-grainreference-1150d526/methods/setargument-int-object-1a3b6b9e/)

```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-39323ee3}

[Dedicated page](/orleans/docs/api/csharp/microsoft.orleans.testinghost/orleanscodegen.orleans.testinghost.invokable-istoragefaultgrain-grainreference-1150d526/methods/settarget-orleans-serialization-invocation-itargetholder-39323ee3/)

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