CancellationToken.ThrowIfCancellationRequested Method
[ This article is for Windows Phone 8 developers. If you’re developing for Windows 10, see the latest documentation. ]
Throws a OperationCanceledException if this token has had cancellation requested.
Assembly: mscorlib (in mscorlib.dll)
| Exception | Condition |
|---|---|
| OperationCanceledException | The token has had cancellation requested. |
| ObjectDisposedException | The associated CancellationTokenSource has been disposed. |
Show: