# ScheduledTask&lt;TResult&gt;.GetResult

[Type overview](/orleans/docs/api/csharp/microsoft.orleans.durable.abstractions/orleans.durable.tasks.scheduledtask-1/) | [Methods](/orleans/docs/api/csharp/microsoft.orleans.durable.abstractions/orleans.durable.tasks.scheduledtask-1/methods/)

[Source](https://github.com/dotnet/orleans/blob/6a0e937f544c35ffcf11b37e4c2b7de5a1580a03/src/Orleans.Durable.Abstractions/ScheduledTask.cs#L665-L667)

```csharp
public TResult GetResult()
```

Returns the result which this handle observed, or throws the recorded failure or cancellation, as awaiting the task does.

### Returns

The task's successful result.

### Exceptions

- `System.InvalidOperationException`: This handle hasn't observed the task's terminal response.
