# Invokable_IMembershipTable_GrainReference_BF899C85 Methods

[Type overview](/orleans/docs/api/csharp/microsoft.orleans.core/orleanscodegen.orleans.invokable-imembershiptable-grainreference-bf899c85/)

## Dispose {#dispose-f83755d7}

[Dedicated page](/orleans/docs/api/csharp/microsoft.orleans.core/orleanscodegen.orleans.invokable-imembershiptable-grainreference-bf899c85/methods/dispose-f83755d7/)

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

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

## GetActivityName {#getactivityname-2a421639}

[Dedicated page](/orleans/docs/api/csharp/microsoft.orleans.core/orleanscodegen.orleans.invokable-imembershiptable-grainreference-bf899c85/methods/getactivityname-2a421639/)

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

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

## GetArgument(int) {#getargument-int-5b3e72fb}

[Dedicated page](/orleans/docs/api/csharp/microsoft.orleans.core/orleanscodegen.orleans.invokable-imembershiptable-grainreference-bf899c85/methods/getargument-int-5b3e72fb/)

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

[Dedicated page](/orleans/docs/api/csharp/microsoft.orleans.core/orleanscodegen.orleans.invokable-imembershiptable-grainreference-bf899c85/methods/getargumentcount-f70c6899/)

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

Gets the number of arguments.

## GetInterfaceName {#getinterfacename-e8824653}

[Dedicated page](/orleans/docs/api/csharp/microsoft.orleans.core/orleanscodegen.orleans.invokable-imembershiptable-grainreference-bf899c85/methods/getinterfacename-e8824653/)

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

Gets the full interface name.

## GetInterfaceType {#getinterfacetype-7d19179d}

[Dedicated page](/orleans/docs/api/csharp/microsoft.orleans.core/orleanscodegen.orleans.invokable-imembershiptable-grainreference-bf899c85/methods/getinterfacetype-7d19179d/)

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

Gets the interface type.

## GetMethod {#getmethod-ad112a9e}

[Dedicated page](/orleans/docs/api/csharp/microsoft.orleans.core/orleanscodegen.orleans.invokable-imembershiptable-grainreference-bf899c85/methods/getmethod-ad112a9e/)

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

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

## GetMethodName {#getmethodname-c9e68855}

[Dedicated page](/orleans/docs/api/csharp/microsoft.orleans.core/orleanscodegen.orleans.invokable-imembershiptable-grainreference-bf899c85/methods/getmethodname-c9e68855/)

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

Gets the method name.

## GetTarget {#gettarget-54146ed4}

[Dedicated page](/orleans/docs/api/csharp/microsoft.orleans.core/orleanscodegen.orleans.invokable-imembershiptable-grainreference-bf899c85/methods/gettarget-54146ed4/)

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

Gets the invocation target.

### Returns

The invocation target.

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

[Dedicated page](/orleans/docs/api/csharp/microsoft.orleans.core/orleanscodegen.orleans.invokable-imembershiptable-grainreference-bf899c85/methods/setargument-int-object-cbfcd3e4/)

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

[Dedicated page](/orleans/docs/api/csharp/microsoft.orleans.core/orleanscodegen.orleans.invokable-imembershiptable-grainreference-bf899c85/methods/settarget-orleans-serialization-invocation-itargetholder-f2ca3e95/)

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