Export (0) Print
Expand All

CancellationToken.CanBeCanceled Property

Gets whether this token is capable of being in the canceled state.

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

'Declaration
Public ReadOnly Property CanBeCanceled As Boolean

Property Value

Type: System.Boolean
true if this token is capable of being in the canceled state; otherwise false.

If CanBeCanceled returns false, it is guaranteed that the token will never transition into a canceled state, meaning that IsCancellationRequested will never return true.

Silverlight

Supported in: 5

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

Community Additions

ADD
Show:
© 2014 Microsoft