RunspacePool.BeginOpen Method

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)

'Usage
Dim instance As RunspacePool
Dim callback As AsyncCallback
Dim state As Object
Dim returnValue As IAsyncResult

returnValue = instance.BeginOpen(callback, state)

public IAsyncResult BeginOpen (
	AsyncCallback callback,
	Object state
)
public IAsyncResult BeginOpen (
	AsyncCallback callback, 
	Object state
)
public function BeginOpen (
	callback : AsyncCallback, 
	state : Object
) : IAsyncResult

Parameters

callback

An asynchronous callback function to call after the method completes.

state

A user supplied state to use with the callback function.

Return Value

An AsyncResult 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.

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

 

Target Platforms

Windows 98, Windows 2000, Windows 2000 Server, Windows CE, Windows Server 2008, Windows 98 Second Edition, Pocket PC, Smart Phone, Windows Server 2003, Windows XP Professional, Windows Vista, Windows Server 2003 R2, Windows XP, Windows 7, Windows 2008 R2, Windows Developer Preview, Windows Server Developer Preview

Send comments about this topic to Microsoft.
Show:
© 2014 Microsoft