# DurableTaskContext.TaskCancellationReason

[Type overview](/orleans/docs/api/csharp/microsoft.orleans.durable.abstractions/orleans.durable.tasks.durabletaskcontext/) | [Properties](/orleans/docs/api/csharp/microsoft.orleans.durable.abstractions/orleans.durable.tasks.durabletaskcontext/properties/)

[Source](https://github.com/dotnet/orleans/blob/6a0e937f544c35ffcf11b37e4c2b7de5a1580a03/src/Orleans.Durable.Abstractions/DurableTaskContext.cs#L160)

```csharp
public string? TaskCancellationReason
```

Gets the reason which the durable cancellation request carries, or `null` when task cancellation hasn't been requested or its request carries no reason.
