# Invokable_IActivationRebalancer_GrainReference_D9CA3E16 Methods

[Type overview](/orleans/docs/api/csharp/microsoft.orleans.core/orleanscodegen.orleans.placement.rebalancing.invokable-iactivationrebalancer-grainreference-d9ca3e16/)

## Dispose {#dispose-c810080e}

[Dedicated page](/orleans/docs/api/csharp/microsoft.orleans.core/orleanscodegen.orleans.placement.rebalancing.invokable-iactivationrebalancer-grainreference-d9ca3e16/methods/dispose-c810080e/)

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

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

## GetActivityName {#getactivityname-d10d6c7e}

[Dedicated page](/orleans/docs/api/csharp/microsoft.orleans.core/orleanscodegen.orleans.placement.rebalancing.invokable-iactivationrebalancer-grainreference-d9ca3e16/methods/getactivityname-d10d6c7e/)

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

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

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

[Dedicated page](/orleans/docs/api/csharp/microsoft.orleans.core/orleanscodegen.orleans.placement.rebalancing.invokable-iactivationrebalancer-grainreference-d9ca3e16/methods/getargument-int-cd3c7f76/)

```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-051daaf4}

[Dedicated page](/orleans/docs/api/csharp/microsoft.orleans.core/orleanscodegen.orleans.placement.rebalancing.invokable-iactivationrebalancer-grainreference-d9ca3e16/methods/getargumentcount-051daaf4/)

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

Gets the number of arguments.

## GetInterfaceName {#getinterfacename-1ac557f6}

[Dedicated page](/orleans/docs/api/csharp/microsoft.orleans.core/orleanscodegen.orleans.placement.rebalancing.invokable-iactivationrebalancer-grainreference-d9ca3e16/methods/getinterfacename-1ac557f6/)

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

Gets the full interface name.

## GetInterfaceType {#getinterfacetype-e7219e7e}

[Dedicated page](/orleans/docs/api/csharp/microsoft.orleans.core/orleanscodegen.orleans.placement.rebalancing.invokable-iactivationrebalancer-grainreference-d9ca3e16/methods/getinterfacetype-e7219e7e/)

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

Gets the interface type.

## GetMethod {#getmethod-d85e8a4d}

[Dedicated page](/orleans/docs/api/csharp/microsoft.orleans.core/orleanscodegen.orleans.placement.rebalancing.invokable-iactivationrebalancer-grainreference-d9ca3e16/methods/getmethod-d85e8a4d/)

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

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

## GetMethodName {#getmethodname-661c65f6}

[Dedicated page](/orleans/docs/api/csharp/microsoft.orleans.core/orleanscodegen.orleans.placement.rebalancing.invokable-iactivationrebalancer-grainreference-d9ca3e16/methods/getmethodname-661c65f6/)

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

Gets the method name.

## GetTarget {#gettarget-2e8169ef}

[Dedicated page](/orleans/docs/api/csharp/microsoft.orleans.core/orleanscodegen.orleans.placement.rebalancing.invokable-iactivationrebalancer-grainreference-d9ca3e16/methods/gettarget-2e8169ef/)

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

Gets the invocation target.

### Returns

The invocation target.

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

[Dedicated page](/orleans/docs/api/csharp/microsoft.orleans.core/orleanscodegen.orleans.placement.rebalancing.invokable-iactivationrebalancer-grainreference-d9ca3e16/methods/setargument-int-object-f8919c1b/)

```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-5317d51c}

[Dedicated page](/orleans/docs/api/csharp/microsoft.orleans.core/orleanscodegen.orleans.placement.rebalancing.invokable-iactivationrebalancer-grainreference-d9ca3e16/methods/settarget-orleans-serialization-invocation-itargetholder-5317d51c/)

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