.NET Framework Class Library |
CancellationTokenSource..::.Token Property |
CancellationTokenSource Class See Also Send Feedback |
Gets the CancellationToken
associated with this CancellationTokenSource.
Namespace:
System.Threading
Assembly:
System.Threading (in System.Threading.dll)
Syntax
Visual Basic (Declaration) |
---|
Public ReadOnly Property Token As CancellationToken |
C# |
---|
public CancellationToken Token { get; } |
Field Value
The CancellationToken associated with this CancellationTokenSource.Exceptions
Exception | Condition |
---|---|
System..::.ObjectDisposedException | The token source has been disposed. |