PowerShell.BeginStop
Method
Definition
Stop the currently running command asynchronously. If the command is not started, the state of PowerShell instance is changed to Stopped and corresponding events will be raised.
The returned IAsyncResult object can be used to wait for the stop operation
to complete.
public IAsyncResult BeginStop (AsyncCallback callback, object state);
Parameters
- callback
- AsyncCallback
A AsyncCallback to call once the BeginStop completes.
- state
- Object
A user supplied state to call the callback
with.
Returns
Exceptions
Object is disposed.