PowerShell.EndStop(IAsyncResult) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Waits for the pending asynchronous BeginStop to complete.
public:
void EndStop(IAsyncResult ^ asyncResult);
public void EndStop (IAsyncResult asyncResult);
member this.EndStop : IAsyncResult -> unit
Public Sub EndStop (asyncResult As IAsyncResult)
Parameters
- asyncResult
- IAsyncResult
Instance of IAsyncResult returned by BeginStop.
Exceptions
asyncResult is a null reference.
asyncResult object was not created by calling BeginStop on this PowerShell instance.
Remarks
When used with Invoke(), that call will return a partial result. When used with InvokeAsync(), that call will throw a PipelineStoppedException.