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