Runspace.GetRunspaces Method

Definition

Overloads

GetRunspaces(RunspaceConnectionInfo)

Queries the server for disconnected runspaces and creates an array of runspace objects associated with each disconnected runspace on the server. 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.

GetRunspaces(RunspaceConnectionInfo, PSHost)

Queries the server for disconnected runspaces and creates an array of runspace objects associated with each disconnected runspace on the server. 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.

GetRunspaces(RunspaceConnectionInfo, PSHost, TypeTable)

Queries the server for disconnected runspaces and creates an array of runspace objects associated with each disconnected runspace on the server. 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.

GetRunspaces(RunspaceConnectionInfo)

Queries the server for disconnected runspaces and creates an array of runspace objects associated with each disconnected runspace on the server. 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.

public static System.Management.Automation.Runspaces.Runspace[] GetRunspaces (System.Management.Automation.Runspaces.RunspaceConnectionInfo connectionInfo);
Parameters
connectionInfo
RunspaceConnectionInfo

Connection object for the target server.

Returns

Array of Runspace objects each in the Disconnected state.

GetRunspaces(RunspaceConnectionInfo, PSHost)

Queries the server for disconnected runspaces and creates an array of runspace objects associated with each disconnected runspace on the server. 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.

public static System.Management.Automation.Runspaces.Runspace[] GetRunspaces (System.Management.Automation.Runspaces.RunspaceConnectionInfo connectionInfo, System.Management.Automation.Host.PSHost host);
Parameters
connectionInfo
RunspaceConnectionInfo

Connection object for the target server.

host
PSHost

Client host object.

Returns

Array of Runspace objects each in the Disconnected state.

GetRunspaces(RunspaceConnectionInfo, PSHost, TypeTable)

Queries the server for disconnected runspaces and creates an array of runspace objects associated with each disconnected runspace on the server. 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.

public static System.Management.Automation.Runspaces.Runspace[] GetRunspaces (System.Management.Automation.Runspaces.RunspaceConnectionInfo connectionInfo, System.Management.Automation.Host.PSHost host, System.Management.Automation.Runspaces.TypeTable typeTable);
Parameters
connectionInfo
RunspaceConnectionInfo

Connection object for the target server.

host
PSHost

Client host object.

typeTable
TypeTable

TypeTable object.

Returns

Array of Runspace objects each in the Disconnected state.