# Invokable_IStorageFaultGrain_GrainReference_1A607A31 Methods

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

## Dispose {#dispose-cedb1609}

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

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

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

## GetActivityName {#getactivityname-06523e6b}

[Dedicated page](/orleans/docs/api/csharp/microsoft.orleans.testinghost/orleanscodegen.orleans.testinghost.invokable-istoragefaultgrain-grainreference-1a607a31/methods/getactivityname-06523e6b/)

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

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

## GetArgument(int) {#getargument-int-4af22489}

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

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

[Dedicated page](/orleans/docs/api/csharp/microsoft.orleans.testinghost/orleanscodegen.orleans.testinghost.invokable-istoragefaultgrain-grainreference-1a607a31/methods/getargumentcount-d8ba825b/)

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

Gets the number of arguments.

## GetInterfaceName {#getinterfacename-18c92189}

[Dedicated page](/orleans/docs/api/csharp/microsoft.orleans.testinghost/orleanscodegen.orleans.testinghost.invokable-istoragefaultgrain-grainreference-1a607a31/methods/getinterfacename-18c92189/)

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

Gets the full interface name.

## GetInterfaceType {#getinterfacetype-789b188b}

[Dedicated page](/orleans/docs/api/csharp/microsoft.orleans.testinghost/orleanscodegen.orleans.testinghost.invokable-istoragefaultgrain-grainreference-1a607a31/methods/getinterfacetype-789b188b/)

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

Gets the interface type.

## GetMethod {#getmethod-81ff0728}

[Dedicated page](/orleans/docs/api/csharp/microsoft.orleans.testinghost/orleanscodegen.orleans.testinghost.invokable-istoragefaultgrain-grainreference-1a607a31/methods/getmethod-81ff0728/)

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

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

## GetMethodName {#getmethodname-7757079b}

[Dedicated page](/orleans/docs/api/csharp/microsoft.orleans.testinghost/orleanscodegen.orleans.testinghost.invokable-istoragefaultgrain-grainreference-1a607a31/methods/getmethodname-7757079b/)

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

Gets the method name.

## GetTarget {#gettarget-8d41ee82}

[Dedicated page](/orleans/docs/api/csharp/microsoft.orleans.testinghost/orleanscodegen.orleans.testinghost.invokable-istoragefaultgrain-grainreference-1a607a31/methods/gettarget-8d41ee82/)

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

Gets the invocation target.

### Returns

The invocation target.

## SetArgument(int, object) {#setargument-int-object-34bec9a2}

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

```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-313aff37}

[Dedicated page](/orleans/docs/api/csharp/microsoft.orleans.testinghost/orleanscodegen.orleans.testinghost.invokable-istoragefaultgrain-grainreference-1a607a31/methods/settarget-orleans-serialization-invocation-itargetholder-313aff37/)

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