Information
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.

Runspace.GetRunspaces Method

 

Updated: April 27, 2016

Applies To: Windows PowerShell

Queries the server for disconnected runspaces and creates an array of runspace objects associated with each disconnected runspace on the server. Introduced in Windows PowerShell 3.0.

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

NameDescription
System_CAPS_pubmethodSystem_CAPS_staticGetRunspaces(RunspaceConnectionInfo)

Queries the server for disconnected runspaces, using connection information, and creates an array of runspace objects associated with each disconnected runspace on the server. Introduced in Windows PowerShell 3.0.

System_CAPS_pubmethodSystem_CAPS_staticGetRunspaces(RunspaceConnectionInfo, PSHost)

Queries the server for disconnected runspaces, using connection information and the client host, and creates an array of runspace objects associated with each disconnected runspace on the server. Introduced in Windows PowerShell 3.0.

System_CAPS_pubmethodSystem_CAPS_staticGetRunspaces(RunspaceConnectionInfo, PSHost, TypeTable)

Queries the server for disconnected runspaces, using connection information, the client host, and the type table, and creates an array of runspace objects associated with each disconnected runspace on the server. Introduced in Windows PowerShell 3.0.

Each runspace object in the returned array is in the Disconnected state and can be connected to the server by calling the Connect method on the runspace.

Return to top

Community Additions

Show: