Windows desktop applications
Collapse the table of content
Expand the table of content
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

RunspacePool.BeginOpen Method (AsyncCallback, Object)


Updated: April 27, 2016

Applies To: Windows PowerShell

Opens the runspace pool for asynchronous operations. The pool must be opened before it can be used to create a runspace. This method is introduced in Windows PowerShell 2.0.

Namespace:   System.Management.Automation.Runspaces
Assembly:  System.Management.Automation (in System.Management.Automation.dll)

public IAsyncResult BeginOpen(
	AsyncCallback callback,
	object state


Type: System.AsyncCallback

An asynchronous callback function to call after the method completes.

Type: System.Object

A user supplied state to use with the callback function.

Return Value

Type: System.IAsyncResult

An IAsyncResult object that can be used to monitor the state of the asynchronous operation.

To close the pool for asynchronous operations, see the EndOpen method.

To open the pool for synchronous operations, see the Open method.

Return to top

Community Additions

© 2016 Microsoft