[This documentation is for preview only, and is subject to change in later releases. Blank topics are included as placeholders.]
Gets whether cancellation has been requested for this CancellationTokenSource.
Public ReadOnly Property IsCancellationRequested As Boolean Get
Dim instance As CancellationTokenSource Dim value As Boolean value = instance.IsCancellationRequested
public bool IsCancellationRequested { get; }
public: property bool IsCancellationRequested { bool get (); }
member IsCancellationRequested : bool
This property indicates whether cancellation has been requested for this token source, such as due to a call to its Cancel method.
If this property returns true, it only guarantees that cancellation has been requested. It does not guarantee that every handler registered with the corresponding token has finished executing, nor that cancellation requests have finished propagating to all registered handlers. Additional synchronization may be required, particularly in situations where related objects are being canceled concurrently.
Windows 7, Windows Vista, Windows XP SP2, Windows Server 2008, Windows Server 2003