Compartir a través de


RunspacePool.GetRunspacePools Method

Definition

Overloads

GetRunspacePools(RunspaceConnectionInfo)

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

GetRunspacePools(RunspaceConnectionInfo, PSHost)

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

GetRunspacePools(RunspaceConnectionInfo, PSHost, TypeTable)

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

GetRunspacePools(RunspaceConnectionInfo)

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

public:
 static cli::array <System::Management::Automation::Runspaces::RunspacePool ^> ^ GetRunspacePools(System::Management::Automation::Runspaces::RunspaceConnectionInfo ^ connectionInfo);
public static System.Management.Automation.Runspaces.RunspacePool[] GetRunspacePools (System.Management.Automation.Runspaces.RunspaceConnectionInfo connectionInfo);
static member GetRunspacePools : System.Management.Automation.Runspaces.RunspaceConnectionInfo -> System.Management.Automation.Runspaces.RunspacePool[]
Public Shared Function GetRunspacePools (connectionInfo As RunspaceConnectionInfo) As RunspacePool()

Parameters

connectionInfo
RunspaceConnectionInfo

Connection object for the target server.

Returns

Array of RunspacePool objects each in the Disconnected state.

Applies to

GetRunspacePools(RunspaceConnectionInfo, PSHost)

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

public:
 static cli::array <System::Management::Automation::Runspaces::RunspacePool ^> ^ GetRunspacePools(System::Management::Automation::Runspaces::RunspaceConnectionInfo ^ connectionInfo, System::Management::Automation::Host::PSHost ^ host);
public static System.Management.Automation.Runspaces.RunspacePool[] GetRunspacePools (System.Management.Automation.Runspaces.RunspaceConnectionInfo connectionInfo, System.Management.Automation.Host.PSHost host);
static member GetRunspacePools : System.Management.Automation.Runspaces.RunspaceConnectionInfo * System.Management.Automation.Host.PSHost -> System.Management.Automation.Runspaces.RunspacePool[]
Public Shared Function GetRunspacePools (connectionInfo As RunspaceConnectionInfo, host As PSHost) As RunspacePool()

Parameters

connectionInfo
RunspaceConnectionInfo

Connection object for the target server.

host
PSHost

Client host object.

Returns

Array of RunspacePool objects each in the Disconnected state.

Applies to

GetRunspacePools(RunspaceConnectionInfo, PSHost, TypeTable)

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

public:
 static cli::array <System::Management::Automation::Runspaces::RunspacePool ^> ^ GetRunspacePools(System::Management::Automation::Runspaces::RunspaceConnectionInfo ^ connectionInfo, System::Management::Automation::Host::PSHost ^ host, System::Management::Automation::Runspaces::TypeTable ^ typeTable);
public static System.Management.Automation.Runspaces.RunspacePool[] GetRunspacePools (System.Management.Automation.Runspaces.RunspaceConnectionInfo connectionInfo, System.Management.Automation.Host.PSHost host, System.Management.Automation.Runspaces.TypeTable typeTable);
static member GetRunspacePools : System.Management.Automation.Runspaces.RunspaceConnectionInfo * System.Management.Automation.Host.PSHost * System.Management.Automation.Runspaces.TypeTable -> System.Management.Automation.Runspaces.RunspacePool[]
Public Shared Function GetRunspacePools (connectionInfo As RunspaceConnectionInfo, host As PSHost, typeTable As TypeTable) As RunspacePool()

Parameters

connectionInfo
RunspaceConnectionInfo

Connection object for the target server.

host
PSHost

Client host object.

typeTable
TypeTable

TypeTable object.

Returns

Array of RunspacePool objects each in the Disconnected state.

Applies to