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 cli::array <System::Management::Automation::Runspaces::Runspace ^> ^ GetRunspaces(System::Management::Automation::Runspaces::RunspaceConnectionInfo ^ connectionInfo);
public static System.Management.Automation.Runspaces.Runspace[] GetRunspaces (System.Management.Automation.Runspaces.RunspaceConnectionInfo connectionInfo);
static member GetRunspaces : System.Management.Automation.Runspaces.RunspaceConnectionInfo -> System.Management.Automation.Runspaces.Runspace[]
Public Shared Function GetRunspaces (connectionInfo As RunspaceConnectionInfo) As Runspace()

Parameters

connectionInfo
RunspaceConnectionInfo

Connection object for the target server.

Returns

Array of Runspace objects each in the Disconnected state.

Applies to

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 cli::array <System::Management::Automation::Runspaces::Runspace ^> ^ GetRunspaces(System::Management::Automation::Runspaces::RunspaceConnectionInfo ^ connectionInfo, System::Management::Automation::Host::PSHost ^ host);
public static System.Management.Automation.Runspaces.Runspace[] GetRunspaces (System.Management.Automation.Runspaces.RunspaceConnectionInfo connectionInfo, System.Management.Automation.Host.PSHost host);
static member GetRunspaces : System.Management.Automation.Runspaces.RunspaceConnectionInfo * System.Management.Automation.Host.PSHost -> System.Management.Automation.Runspaces.Runspace[]
Public Shared Function GetRunspaces (connectionInfo As RunspaceConnectionInfo, host As PSHost) As Runspace()

Parameters

connectionInfo
RunspaceConnectionInfo

Connection object for the target server.

host
PSHost

Client host object.

Returns

Array of Runspace objects each in the Disconnected state.

Applies to

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 cli::array <System::Management::Automation::Runspaces::Runspace ^> ^ GetRunspaces(System::Management::Automation::Runspaces::RunspaceConnectionInfo ^ connectionInfo, System::Management::Automation::Host::PSHost ^ host, System::Management::Automation::Runspaces::TypeTable ^ typeTable);
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);
static member GetRunspaces : System.Management.Automation.Runspaces.RunspaceConnectionInfo * System.Management.Automation.Host.PSHost * System.Management.Automation.Runspaces.TypeTable -> System.Management.Automation.Runspaces.Runspace[]
Public Shared Function GetRunspaces (connectionInfo As RunspaceConnectionInfo, host As PSHost, typeTable As TypeTable) As Runspace()

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.

Applies to