|
| .NET Framework Class Library |
| CancellationToken..::.CanBeCanceled Property |
| CancellationToken Structure See Also Send Feedback |
Gets whether this token is capable of being in the canceled state.
Namespace:
System.Threading
Assembly:
System.Threading (in System.Threading.dll)
Syntax
| Visual Basic (Declaration) |
|---|
Public ReadOnly Property CanBeCanceled As Boolean |
| C# |
|---|
public bool CanBeCanceled { get; } |
Remarks
If CanBeCanceled returns false, it is guaranteed that the token will never transition
into a canceled state, meaning that IsCancellationRequested will never
return true.