|
CompatibleCancellationTokenCancel Method
|
Cancels the operation.
Namespace: GSF.ThreadingAssembly: GSF.Core (in GSF.Core.dll) Version: 2.4.275-beta+902014e77f8e74f234b09eddd054b032bd877586
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
Exceptions| Exception | Condition |
|---|
| InvalidOperationException | CancellationTokenSource not available, token cannot be cancelled. |
Remarks
The token can only be cancelled if a CancellationTokenSource was provided.
See Also