AsyncCmdlet.IsCancelled Method
The provider can query to see if the operation has been cancelled. This provides for a gentle way for the caller to notify the callee that they don't want any more results. This element is introduced in Windows PowerShell 5.0.
Namespace: Microsoft.OneGet.Utility.PowerShell
Assembly: Microsoft.OneGet.Utility.PowerShell (in Microsoft.OneGet.Utility.PowerShell.dll)
Usage
'Usage
Dim instance As AsyncCmdlet
Dim returnValue As Boolean
returnValue = instance.IsCancelled
Syntax
'Declaration
Public Function IsCancelled As Boolean
public bool IsCancelled ()
public:
bool IsCancelled ()
public boolean IsCancelled ()
public function IsCancelled () : boolean
Return Value
returns TRUE if the operation has been cancelled.
Thread Safety
Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
Platforms
Target Platforms
See Also
Reference
AsyncCmdlet Class
AsyncCmdlet Members
Microsoft.OneGet.Utility.PowerShell Namespace