Click or drag to resize

CompatibleCancellationTokenCancel Method

Cancels the operation.

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