CancellationToken.CanBeCanceled Property
[ This article is for Windows Phone 8 developers. If you’re developing for Windows 10, see the latest documentation. ]
Gets whether this token is capable of being in the canceled state.
Assembly: mscorlib (in mscorlib.dll)
Property Value
Type: System.Booleantrue 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.
Show: