Click or drag to resize

CompatibleCancellationTokenCancel Method

Cancels the operation.

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