# Invokable_IExclusiveLockTransactionTestGrain_GrainReference_BD3AA4D0 Methods

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

## Dispose {#dispose-5a0e67dc}

[Dedicated page](/orleans/docs/api/csharp/microsoft.orleans.transactions.testkit.base/orleanscodegen.orleans.transactions.testkit.invokable-iexclusivelocktransactiontestgrain-grainreference-bd3aa4d0/methods/dispose-5a0e67dc/)

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

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

## GetActivityName {#getactivityname-10e3a33e}

[Dedicated page](/orleans/docs/api/csharp/microsoft.orleans.transactions.testkit.base/orleanscodegen.orleans.transactions.testkit.invokable-iexclusivelocktransactiontestgrain-grainreference-bd3aa4d0/methods/getactivityname-10e3a33e/)

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

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

## GetArgument(int) {#getargument-int-98e3f462}

[Dedicated page](/orleans/docs/api/csharp/microsoft.orleans.transactions.testkit.base/orleanscodegen.orleans.transactions.testkit.invokable-iexclusivelocktransactiontestgrain-grainreference-bd3aa4d0/methods/getargument-int-98e3f462/)

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

[Dedicated page](/orleans/docs/api/csharp/microsoft.orleans.transactions.testkit.base/orleanscodegen.orleans.transactions.testkit.invokable-iexclusivelocktransactiontestgrain-grainreference-bd3aa4d0/methods/getargumentcount-f8d1cbf4/)

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

Gets the number of arguments.

## GetInterfaceName {#getinterfacename-c93c23b6}

[Dedicated page](/orleans/docs/api/csharp/microsoft.orleans.transactions.testkit.base/orleanscodegen.orleans.transactions.testkit.invokable-iexclusivelocktransactiontestgrain-grainreference-bd3aa4d0/methods/getinterfacename-c93c23b6/)

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

Gets the full interface name.

## GetInterfaceType {#getinterfacetype-727a738c}

[Dedicated page](/orleans/docs/api/csharp/microsoft.orleans.transactions.testkit.base/orleanscodegen.orleans.transactions.testkit.invokable-iexclusivelocktransactiontestgrain-grainreference-bd3aa4d0/methods/getinterfacetype-727a738c/)

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

Gets the interface type.

## GetMethod {#getmethod-c871f32d}

[Dedicated page](/orleans/docs/api/csharp/microsoft.orleans.transactions.testkit.base/orleanscodegen.orleans.transactions.testkit.invokable-iexclusivelocktransactiontestgrain-grainreference-bd3aa4d0/methods/getmethod-c871f32d/)

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

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

## GetMethodName {#getmethodname-8e1518b6}

[Dedicated page](/orleans/docs/api/csharp/microsoft.orleans.transactions.testkit.base/orleanscodegen.orleans.transactions.testkit.invokable-iexclusivelocktransactiontestgrain-grainreference-bd3aa4d0/methods/getmethodname-8e1518b6/)

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

Gets the method name.

## GetTarget {#gettarget-9aa6effb}

[Dedicated page](/orleans/docs/api/csharp/microsoft.orleans.transactions.testkit.base/orleanscodegen.orleans.transactions.testkit.invokable-iexclusivelocktransactiontestgrain-grainreference-bd3aa4d0/methods/gettarget-9aa6effb/)

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

Gets the invocation target.

### Returns

The invocation target.

## SetArgument(int, object) {#setargument-int-object-8bf8a2ad}

[Dedicated page](/orleans/docs/api/csharp/microsoft.orleans.transactions.testkit.base/orleanscodegen.orleans.transactions.testkit.invokable-iexclusivelocktransactiontestgrain-grainreference-bd3aa4d0/methods/setargument-int-object-8bf8a2ad/)

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

[Dedicated page](/orleans/docs/api/csharp/microsoft.orleans.transactions.testkit.base/orleanscodegen.orleans.transactions.testkit.invokable-iexclusivelocktransactiontestgrain-grainreference-bd3aa4d0/methods/settarget-orleans-serialization-invocation-itargetholder-c55f228a/)

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