|
CompatibleCancellationTokenCancel Method
|
Cancels the operation.
Namespace: GSF.ThreadingAssembly: GSF.Core (in GSF.Core.dll) Version: 2.4.253-beta+ffb7163c9e3b771705bc5b9aa3f09870f2cb9e2c
Syntaxpublic virtual bool Cancel()
Public Overridable Function Cancel As Boolean
public:
virtual bool Cancel()
abstract Cancel : unit -> bool
override Cancel : unit -> bool
View SourceReturn Value
Booleantrue if the operation was cancelled; otherwise
false.
Implements
ICancellationTokenCancel
ExceptionsException | Condition |
---|
InvalidOperationException | CancellationTokenSource not available, token cannot be cancelled. |
Remarks
The token can only be cancelled if a CancellationTokenSource was provided.
See Also