# Invokable_IJoinAttributionGrain_GrainReference_B1619F67 Methods

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

## Dispose {#dispose-6ad6e495}

[Dedicated page](/orleans/docs/api/csharp/microsoft.orleans.transactions.testkit.base/orleanscodegen.orleans.transactions.testkit.invokable-ijoinattributiongrain-grainreference-b1619f67/methods/dispose-6ad6e495/)

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

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

## GetActivityName {#getactivityname-a925c09d}

[Dedicated page](/orleans/docs/api/csharp/microsoft.orleans.transactions.testkit.base/orleanscodegen.orleans.transactions.testkit.invokable-ijoinattributiongrain-grainreference-b1619f67/methods/getactivityname-a925c09d/)

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

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

## GetArgument(int) {#getargument-int-96636b63}

[Dedicated page](/orleans/docs/api/csharp/microsoft.orleans.transactions.testkit.base/orleanscodegen.orleans.transactions.testkit.invokable-ijoinattributiongrain-grainreference-b1619f67/methods/getargument-int-96636b63/)

```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-46490e05}

[Dedicated page](/orleans/docs/api/csharp/microsoft.orleans.transactions.testkit.base/orleanscodegen.orleans.transactions.testkit.invokable-ijoinattributiongrain-grainreference-b1619f67/methods/getargumentcount-46490e05/)

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

Gets the number of arguments.

## GetInterfaceName {#getinterfacename-e9ff0a1f}

[Dedicated page](/orleans/docs/api/csharp/microsoft.orleans.transactions.testkit.base/orleanscodegen.orleans.transactions.testkit.invokable-ijoinattributiongrain-grainreference-b1619f67/methods/getinterfacename-e9ff0a1f/)

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

Gets the full interface name.

## GetInterfaceType {#getinterfacetype-c98f5c9b}

[Dedicated page](/orleans/docs/api/csharp/microsoft.orleans.transactions.testkit.base/orleanscodegen.orleans.transactions.testkit.invokable-ijoinattributiongrain-grainreference-b1619f67/methods/getinterfacetype-c98f5c9b/)

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

Gets the interface type.

## GetMethod {#getmethod-cb7ec0ea}

[Dedicated page](/orleans/docs/api/csharp/microsoft.orleans.transactions.testkit.base/orleanscodegen.orleans.transactions.testkit.invokable-ijoinattributiongrain-grainreference-b1619f67/methods/getmethod-cb7ec0ea/)

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

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

## GetMethodName {#getmethodname-161db719}

[Dedicated page](/orleans/docs/api/csharp/microsoft.orleans.transactions.testkit.base/orleanscodegen.orleans.transactions.testkit.invokable-ijoinattributiongrain-grainreference-b1619f67/methods/getmethodname-161db719/)

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

Gets the method name.

## GetTarget {#gettarget-0e6adf1c}

[Dedicated page](/orleans/docs/api/csharp/microsoft.orleans.transactions.testkit.base/orleanscodegen.orleans.transactions.testkit.invokable-ijoinattributiongrain-grainreference-b1619f67/methods/gettarget-0e6adf1c/)

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

Gets the invocation target.

### Returns

The invocation target.

## SetArgument(int, object) {#setargument-int-object-6da701b6}

[Dedicated page](/orleans/docs/api/csharp/microsoft.orleans.transactions.testkit.base/orleanscodegen.orleans.transactions.testkit.invokable-ijoinattributiongrain-grainreference-b1619f67/methods/setargument-int-object-6da701b6/)

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

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

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