CancellationToken Property
Collapse the table of content
Expand the table of content

OperationCanceledException.CancellationToken Property

[ This article is for Windows Phone 8 developers. If you’re developing for Windows 10, see the latest documentation. ]

Gets a token associated with the operation that was canceled.

Namespace:  System
Assembly:  mscorlib (in mscorlib.dll)

public CancellationToken CancellationToken { get; }

Property Value

Type: System.Threading.CancellationToken
A token associated with the operation that was canceled, or a default token.

If the token is associated with a canceled operation, the CancellationToken.IsCancellationRequested property of the token returns true.

Windows Phone OS

Supported in: 8.1, 8.0

Show:
© 2016 Microsoft