# BatchWorker Properties

[Type overview](/orleans/docs/api/csharp/microsoft.orleans.core/orleans.batchworker/)

## CancellationToken {#cancellationtoken-e3b317b5}

[Dedicated page](/orleans/docs/api/csharp/microsoft.orleans.core/orleans.batchworker/properties/cancellationtoken-e3b317b5/)

[Source](https://github.com/dotnet/orleans/blob/6a0e937f544c35ffcf11b37e4c2b7de5a1580a03/src/Orleans.Core/Async/BatchWorker.cs)

```csharp
protected CancellationToken CancellationToken
```

Gets or sets the cancellation used to cancel this batch worker.
