# Invokable_IFaultInjectionTransactionTestGrain_GrainReference_A4CAE05C Methods

[Type overview](/orleans/docs/api/csharp/microsoft.orleans.transactions.testkit.base/orleanscodegen.orleans.transactions.testkit.invokable-ifaultinjectiontransactiontestgrain-grainreference-a4cae05c/)

## Dispose {#dispose-fce5c7cf}

[Dedicated page](/orleans/docs/api/csharp/microsoft.orleans.transactions.testkit.base/orleanscodegen.orleans.transactions.testkit.invokable-ifaultinjectiontransactiontestgrain-grainreference-a4cae05c/methods/dispose-fce5c7cf/)

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

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

## GetActivityName {#getactivityname-ed501483}

[Dedicated page](/orleans/docs/api/csharp/microsoft.orleans.transactions.testkit.base/orleanscodegen.orleans.transactions.testkit.invokable-ifaultinjectiontransactiontestgrain-grainreference-a4cae05c/methods/getactivityname-ed501483/)

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

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

## GetArgument(int) {#getargument-int-a64489d9}

[Dedicated page](/orleans/docs/api/csharp/microsoft.orleans.transactions.testkit.base/orleanscodegen.orleans.transactions.testkit.invokable-ifaultinjectiontransactiontestgrain-grainreference-a4cae05c/methods/getargument-int-a64489d9/)

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

[Dedicated page](/orleans/docs/api/csharp/microsoft.orleans.transactions.testkit.base/orleanscodegen.orleans.transactions.testkit.invokable-ifaultinjectiontransactiontestgrain-grainreference-a4cae05c/methods/getargumentcount-c3c83fb3/)

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

Gets the number of arguments.

## GetInterfaceName {#getinterfacename-a11f6f61}

[Dedicated page](/orleans/docs/api/csharp/microsoft.orleans.transactions.testkit.base/orleanscodegen.orleans.transactions.testkit.invokable-ifaultinjectiontransactiontestgrain-grainreference-a4cae05c/methods/getinterfacename-a11f6f61/)

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

Gets the full interface name.

## GetInterfaceType {#getinterfacetype-4c31529d}

[Dedicated page](/orleans/docs/api/csharp/microsoft.orleans.transactions.testkit.base/orleanscodegen.orleans.transactions.testkit.invokable-ifaultinjectiontransactiontestgrain-grainreference-a4cae05c/methods/getinterfacetype-4c31529d/)

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

Gets the interface type.

## GetMethod {#getmethod-5d3704a0}

[Dedicated page](/orleans/docs/api/csharp/microsoft.orleans.transactions.testkit.base/orleanscodegen.orleans.transactions.testkit.invokable-ifaultinjectiontransactiontestgrain-grainreference-a4cae05c/methods/getmethod-5d3704a0/)

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

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

## GetMethodName {#getmethodname-8e6567f3}

[Dedicated page](/orleans/docs/api/csharp/microsoft.orleans.transactions.testkit.base/orleanscodegen.orleans.transactions.testkit.invokable-ifaultinjectiontransactiontestgrain-grainreference-a4cae05c/methods/getmethodname-8e6567f3/)

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

Gets the method name.

## GetTarget {#gettarget-c96b0fb2}

[Dedicated page](/orleans/docs/api/csharp/microsoft.orleans.transactions.testkit.base/orleanscodegen.orleans.transactions.testkit.invokable-ifaultinjectiontransactiontestgrain-grainreference-a4cae05c/methods/gettarget-c96b0fb2/)

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

Gets the invocation target.

### Returns

The invocation target.

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

[Dedicated page](/orleans/docs/api/csharp/microsoft.orleans.transactions.testkit.base/orleanscodegen.orleans.transactions.testkit.invokable-ifaultinjectiontransactiontestgrain-grainreference-a4cae05c/methods/setargument-int-object-bad424fc/)

```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-3824c67d}

[Dedicated page](/orleans/docs/api/csharp/microsoft.orleans.transactions.testkit.base/orleanscodegen.orleans.transactions.testkit.invokable-ifaultinjectiontransactiontestgrain-grainreference-a4cae05c/methods/settarget-orleans-serialization-invocation-itargetholder-3824c67d/)

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