# Invokable_IStorageFaultGrain_GrainReference_E8594820 Methods

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

## Dispose {#dispose-a7780cd8}

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

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

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

## GetActivityName {#getactivityname-b1dfdc52}

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

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

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

## GetArgument(int) {#getargument-int-1c56b0fa}

[Dedicated page](/orleans/docs/api/csharp/microsoft.orleans.testinghost/orleanscodegen.orleans.testinghost.invokable-istoragefaultgrain-grainreference-e8594820/methods/getargument-int-1c56b0fa/)

```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-5860a1f0}

[Dedicated page](/orleans/docs/api/csharp/microsoft.orleans.testinghost/orleanscodegen.orleans.testinghost.invokable-istoragefaultgrain-grainreference-e8594820/methods/getargumentcount-5860a1f0/)

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

Gets the number of arguments.

## GetInterfaceName {#getinterfacename-c890a032}

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

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

Gets the full interface name.

## GetInterfaceType {#getinterfacetype-68a7a37c}

[Dedicated page](/orleans/docs/api/csharp/microsoft.orleans.testinghost/orleanscodegen.orleans.testinghost.invokable-istoragefaultgrain-grainreference-e8594820/methods/getinterfacetype-68a7a37c/)

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

Gets the interface type.

## GetMethod {#getmethod-a0b303f9}

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

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

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

## GetMethodName {#getmethodname-47d0a6aa}

[Dedicated page](/orleans/docs/api/csharp/microsoft.orleans.testinghost/orleanscodegen.orleans.testinghost.invokable-istoragefaultgrain-grainreference-e8594820/methods/getmethodname-47d0a6aa/)

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

Gets the method name.

## GetTarget {#gettarget-7bb27fb3}

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

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

Gets the invocation target.

### Returns

The invocation target.

## SetArgument(int, object) {#setargument-int-object-50617661}

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

```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-0379885e}

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

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