RunspacePool.BeginClose(AsyncCallback, Object) Method

Definition

Closes the RunspacePool asynchronously and cleans all the internal resources. This will close all the runspaces in the runspacepool and release all the async operations waiting for a runspace. If the pool is already closed or broken or closing this will just return.

public:
 IAsyncResult ^ BeginClose(AsyncCallback ^ callback, System::Object ^ state);

Parameters

callback
AsyncCallback

A AsyncCallback to call once the BeginClose completes.

state
Object

A user supplied state to call the callback with.

Returns

An AsyncResult object to monitor the state of the async operation.

Applies to