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