System.Threading.CancellationToken.CanBeCanceled Property

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

Syntax

public bool CanBeCanceled { get; }

Value

Documentation for this section has not yet been entered.

Remarks

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

Requirements

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