# Invokable_IRemindable_GrainReference_2F7B680A Methods

[Type overview](/orleans/docs/api/csharp/microsoft.orleans.reminders/orleanscodegen.orleans.invokable-iremindable-grainreference-2f7b680a/)

## Dispose {#dispose-e54679f0}

[Dedicated page](/orleans/docs/api/csharp/microsoft.orleans.reminders/orleanscodegen.orleans.invokable-iremindable-grainreference-2f7b680a/methods/dispose-e54679f0/)

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

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

## GetActivityName {#getactivityname-2cd29590}

[Dedicated page](/orleans/docs/api/csharp/microsoft.orleans.reminders/orleanscodegen.orleans.invokable-iremindable-grainreference-2f7b680a/methods/getactivityname-2cd29590/)

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

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

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

[Dedicated page](/orleans/docs/api/csharp/microsoft.orleans.reminders/orleanscodegen.orleans.invokable-iremindable-grainreference-2f7b680a/methods/getargument-int-6f821c6c/)

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

[Dedicated page](/orleans/docs/api/csharp/microsoft.orleans.reminders/orleanscodegen.orleans.invokable-iremindable-grainreference-2f7b680a/methods/getargumentcount-b380fa3e/)

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

Gets the number of arguments.

## GetCancellationToken {#getcancellationtoken-96a37077}

[Dedicated page](/orleans/docs/api/csharp/microsoft.orleans.reminders/orleanscodegen.orleans.invokable-iremindable-grainreference-2f7b680a/methods/getcancellationtoken-96a37077/)

```csharp
public override CancellationToken GetCancellationToken()
```

Gets the cancellation token for this request. If the request does not accept a cancellation token, this will be `System.Threading.CancellationToken.None`.

### Returns

The cancellation token for this request.

## GetInterfaceName {#getinterfacename-6f15e884}

[Dedicated page](/orleans/docs/api/csharp/microsoft.orleans.reminders/orleanscodegen.orleans.invokable-iremindable-grainreference-2f7b680a/methods/getinterfacename-6f15e884/)

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

Gets the full interface name.

## GetInterfaceType {#getinterfacetype-182ab03c}

[Dedicated page](/orleans/docs/api/csharp/microsoft.orleans.reminders/orleanscodegen.orleans.invokable-iremindable-grainreference-2f7b680a/methods/getinterfacetype-182ab03c/)

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

Gets the interface type.

## GetMethod {#getmethod-0e1dc92f}

[Dedicated page](/orleans/docs/api/csharp/microsoft.orleans.reminders/orleanscodegen.orleans.invokable-iremindable-grainreference-2f7b680a/methods/getmethod-0e1dc92f/)

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

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

## GetMethodName {#getmethodname-179d99bc}

[Dedicated page](/orleans/docs/api/csharp/microsoft.orleans.reminders/orleanscodegen.orleans.invokable-iremindable-grainreference-2f7b680a/methods/getmethodname-179d99bc/)

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

Gets the method name.

## GetTarget {#gettarget-2dcf673d}

[Dedicated page](/orleans/docs/api/csharp/microsoft.orleans.reminders/orleanscodegen.orleans.invokable-iremindable-grainreference-2f7b680a/methods/gettarget-2dcf673d/)

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

Gets the invocation target.

### Returns

The invocation target.

## InvokeInner {#invokeinner-95b7804f}

[Dedicated page](/orleans/docs/api/csharp/microsoft.orleans.reminders/orleanscodegen.orleans.invokable-iremindable-grainreference-2f7b680a/methods/invokeinner-95b7804f/)

```csharp
protected override Task InvokeInner()
```

Invokes the request against the target.

### Returns

The invocation result.

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

[Dedicated page](/orleans/docs/api/csharp/microsoft.orleans.reminders/orleanscodegen.orleans.invokable-iremindable-grainreference-2f7b680a/methods/setargument-int-object-deeb2f39/)

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

[Dedicated page](/orleans/docs/api/csharp/microsoft.orleans.reminders/orleanscodegen.orleans.invokable-iremindable-grainreference-2f7b680a/methods/settarget-orleans-serialization-invocation-itargetholder-fecd2d26/)

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

## TryCancel {#trycancel-405d8c04}

[Dedicated page](/orleans/docs/api/csharp/microsoft.orleans.reminders/orleanscodegen.orleans.invokable-iremindable-grainreference-2f7b680a/methods/trycancel-405d8c04/)

```csharp
public override bool TryCancel()
```

Tries to cancel the invocation.

### Returns

`true` if cancellation was requested, otherwise `false`.
