|
CompatibleCancellationTokenCancel Method
|
Cancels the operation.
Namespace: GSF.ThreadingAssembly: GSF.Core (in GSF.Core.dll) Version: 2.4.251-beta+c370f3da3791592278238855631f53a5ff418c68
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