# DurableOperationCancelRequest Constructors

[Type overview](/orleans/docs/api/csharp/microsoft.orleans.durable.http/orleans.durable.http.durableoperationcancelrequest/)

## DurableOperationCancelRequest(string?) {#constructor-string-nullable-42d3cf8f}

[Dedicated page](/orleans/docs/api/csharp/microsoft.orleans.durable.http/orleans.durable.http.durableoperationcancelrequest/constructors/constructor-string-nullable-42d3cf8f/)

[Source](https://github.com/dotnet/orleans/blob/4e887e9c914a2f2647fb3c81de963511521dd9cb/src/Orleans.Durable.Http/DurableOperation.cs#L236-L237)

```csharp
public DurableOperationCancelRequest(string? Reason)
```

Requests cancellation of an operation.

### Parameters

- `Reason` (`string?`): The reason which the canceled task reads from [DurableTaskContext](/orleans/docs/api/csharp/microsoft.orleans.durable.abstractions/orleans.durable.tasks.durabletaskcontext/), or `null` for none.
