CancellationTokenSource.Token Property
[ This article is for Windows Phone 8 developers. If you’re developing for Windows 10, see the latest documentation. ]
Gets the CancellationToken associated with this CancellationTokenSource.
Namespace: System.Threading
Assembly: mscorlib (in mscorlib.dll)
Syntax
Public ReadOnly Property Token As CancellationToken
public CancellationToken Token { get; }
Property Value
Type: System.Threading..::.CancellationToken
The CancellationToken associated with this CancellationTokenSource.
Exceptions
Exception | Condition |
---|---|
ObjectDisposedException | The token source has been disposed. |
Version Information
Windows Phone OS
Supported in: 8.1, 8.0