PowerShell.EndStop(IAsyncResult) Method

Definition

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.

Applies to