# Invokable_IFaultInjectionTransactionTestGrain_GrainReference_8389970A Methods

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

## Dispose {#dispose-95857afa}

[Dedicated page](/orleans/docs/api/csharp/microsoft.orleans.transactions.testkit.base/orleanscodegen.orleans.transactions.testkit.invokable-ifaultinjectiontransactiontestgrain-grainreference-8389970a/methods/dispose-95857afa/)

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

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

## GetActivityName {#getactivityname-996d4dda}

[Dedicated page](/orleans/docs/api/csharp/microsoft.orleans.transactions.testkit.base/orleanscodegen.orleans.transactions.testkit.invokable-ifaultinjectiontransactiontestgrain-grainreference-8389970a/methods/getactivityname-996d4dda/)

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

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

## GetArgument(int) {#getargument-int-6e97bf1a}

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

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

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

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

Gets the number of arguments.

## GetInterfaceName {#getinterfacename-69a9da7a}

[Dedicated page](/orleans/docs/api/csharp/microsoft.orleans.transactions.testkit.base/orleanscodegen.orleans.transactions.testkit.invokable-ifaultinjectiontransactiontestgrain-grainreference-8389970a/methods/getinterfacename-69a9da7a/)

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

Gets the full interface name.

## GetInterfaceType {#getinterfacetype-7ced4e6a}

[Dedicated page](/orleans/docs/api/csharp/microsoft.orleans.transactions.testkit.base/orleanscodegen.orleans.transactions.testkit.invokable-ifaultinjectiontransactiontestgrain-grainreference-8389970a/methods/getinterfacetype-7ced4e6a/)

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

Gets the interface type.

## GetMethod {#getmethod-8172afc1}

[Dedicated page](/orleans/docs/api/csharp/microsoft.orleans.transactions.testkit.base/orleanscodegen.orleans.transactions.testkit.invokable-ifaultinjectiontransactiontestgrain-grainreference-8389970a/methods/getmethod-8172afc1/)

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

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

## GetMethodName {#getmethodname-284e2c52}

[Dedicated page](/orleans/docs/api/csharp/microsoft.orleans.transactions.testkit.base/orleanscodegen.orleans.transactions.testkit.invokable-ifaultinjectiontransactiontestgrain-grainreference-8389970a/methods/getmethodname-284e2c52/)

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

Gets the method name.

## GetTarget {#gettarget-d6010ad3}

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

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

Gets the invocation target.

### Returns

The invocation target.

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

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

```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-83b83720}

[Dedicated page](/orleans/docs/api/csharp/microsoft.orleans.transactions.testkit.base/orleanscodegen.orleans.transactions.testkit.invokable-ifaultinjectiontransactiontestgrain-grainreference-8389970a/methods/settarget-orleans-serialization-invocation-itargetholder-83b83720/)

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