Click or drag to resize

CompatibleCancellationTokenCancel Method

Cancels the operation.

Namespace: GSF.Threading
Assembly: GSF.Core (in GSF.Core.dll) Version: 2.4.207-beta+1781b796b2aa7a54013a031eb432fe4ccee31867
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