共用方式為


OperationCanceledException.CancellationToken Property

Microsoft Silverlight will reach end of support after October 2021. Learn more.

Gets a token associated with the operation that was canceled.

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

Syntax

'Declaration
Public Property CancellationToken As CancellationToken
public CancellationToken CancellationToken { get; private set; }

Property Value

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

Remarks

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

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.