Click or drag to resize

CompatibleCancellationTokenCancel Method

Cancels the operation.

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