CancellationTokenSource.Token Property

Gets the CancellationToken associated with this CancellationTokenSource.

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

Syntax

'Declaration
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

Silverlight

Supported in: 5

Platforms

For a list of the operating systems and browsers that are supported by Silverlight, see Supported Operating Systems and Browsers.