# Invokable_IReminderService_GrainReference_D460F889 Methods

[Type overview](/orleans/docs/api/csharp/microsoft.orleans.reminders/orleanscodegen.orleans.invokable-ireminderservice-grainreference-d460f889/)

## Dispose {#dispose-438ea9f1}

[Dedicated page](/orleans/docs/api/csharp/microsoft.orleans.reminders/orleanscodegen.orleans.invokable-ireminderservice-grainreference-d460f889/methods/dispose-438ea9f1/)

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

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

## GetActivityName {#getactivityname-6355d333}

[Dedicated page](/orleans/docs/api/csharp/microsoft.orleans.reminders/orleanscodegen.orleans.invokable-ireminderservice-grainreference-d460f889/methods/getactivityname-6355d333/)

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

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

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

[Dedicated page](/orleans/docs/api/csharp/microsoft.orleans.reminders/orleanscodegen.orleans.invokable-ireminderservice-grainreference-d460f889/methods/getargument-int-ee7f3a59/)

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

[Dedicated page](/orleans/docs/api/csharp/microsoft.orleans.reminders/orleanscodegen.orleans.invokable-ireminderservice-grainreference-d460f889/methods/getargumentcount-dfe76a33/)

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

Gets the number of arguments.

## GetCancellationToken {#getcancellationtoken-109c1338}

[Dedicated page](/orleans/docs/api/csharp/microsoft.orleans.reminders/orleanscodegen.orleans.invokable-ireminderservice-grainreference-d460f889/methods/getcancellationtoken-109c1338/)

```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-529bef31}

[Dedicated page](/orleans/docs/api/csharp/microsoft.orleans.reminders/orleanscodegen.orleans.invokable-ireminderservice-grainreference-d460f889/methods/getinterfacename-529bef31/)

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

Gets the full interface name.

## GetInterfaceType {#getinterfacetype-45881b2b}

[Dedicated page](/orleans/docs/api/csharp/microsoft.orleans.reminders/orleanscodegen.orleans.invokable-ireminderservice-grainreference-d460f889/methods/getinterfacetype-45881b2b/)

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

Gets the interface type.

## GetMethod {#getmethod-615f5730}

[Dedicated page](/orleans/docs/api/csharp/microsoft.orleans.reminders/orleanscodegen.orleans.invokable-ireminderservice-grainreference-d460f889/methods/getmethod-615f5730/)

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

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

## GetMethodName {#getmethodname-b7ccfec3}

[Dedicated page](/orleans/docs/api/csharp/microsoft.orleans.reminders/orleanscodegen.orleans.invokable-ireminderservice-grainreference-d460f889/methods/getmethodname-b7ccfec3/)

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

Gets the method name.

## GetTarget {#gettarget-ce0ba132}

[Dedicated page](/orleans/docs/api/csharp/microsoft.orleans.reminders/orleanscodegen.orleans.invokable-ireminderservice-grainreference-d460f889/methods/gettarget-ce0ba132/)

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

Gets the invocation target.

### Returns

The invocation target.

## InvokeInner {#invokeinner-a887c9e6}

[Dedicated page](/orleans/docs/api/csharp/microsoft.orleans.reminders/orleanscodegen.orleans.invokable-ireminderservice-grainreference-d460f889/methods/invokeinner-a887c9e6/)

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

Invokes the request against the target.

### Returns

The invocation result.

## SetArgument(int, object) {#setargument-int-object-7bdb54ea}

[Dedicated page](/orleans/docs/api/csharp/microsoft.orleans.reminders/orleanscodegen.orleans.invokable-ireminderservice-grainreference-d460f889/methods/setargument-int-object-7bdb54ea/)

```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-5b9f010f}

[Dedicated page](/orleans/docs/api/csharp/microsoft.orleans.reminders/orleanscodegen.orleans.invokable-ireminderservice-grainreference-d460f889/methods/settarget-orleans-serialization-invocation-itargetholder-5b9f010f/)

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

[Dedicated page](/orleans/docs/api/csharp/microsoft.orleans.reminders/orleanscodegen.orleans.invokable-ireminderservice-grainreference-d460f889/methods/trycancel-f89970b9/)

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

Tries to cancel the invocation.

### Returns

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