Click or drag to resize

CompatibleCancellationTokenCancel Method

Cancels the operation.

Namespace: GSF.Threading
Assembly: GSF.Core (in GSF.Core.dll) Version: 2.4.191-beta+925724bd48239ba1d4417fe63f8c4977892ab734
Syntax
public virtual bool Cancel()
View Source

Return Value

Boolean
true if the operation was cancelled; otherwise false.

Implements

ICancellationTokenCancel
Exceptions
ExceptionCondition
InvalidOperationExceptionCancellationTokenSource not available, token cannot be cancelled.
Remarks
The token can only be cancelled if a CancellationTokenSource was provided.
See Also