RunspaceFactory.CreateRunspacePool
Method
Definition
Overloads
| CreateRunspacePool(Int32, Int32, RunspaceConnectionInfo, PSHost, TypeTable) |
Creates a RunspacePool
on the specified remote runspace compuer.
|
| CreateRunspacePool() |
Creates a RunspacePool using default RunspaceConfiguration with MaxRunspaces 1 and MinRunspaces 1. |
| CreateRunspacePool(InitialSessionState) |
Creates a RunspacePool using the supplied |
| CreateRunspacePool(Int32, Int32) |
Creates a RunspacePool using default RunspaceConfiguration.
|
| CreateRunspacePool(Int32, Int32, PSHost) |
Creates a RunspacePool using the supplied |
| CreateRunspacePool(Int32, Int32, RunspaceConnectionInfo) |
Creates a RunspacePool
on the specified remote computer.
|
| CreateRunspacePool(Int32, Int32, InitialSessionState, PSHost) |
Creates a RunspacePool using the supplied |
| CreateRunspacePool(Int32, Int32, RunspaceConnectionInfo, PSHost) |
Creates a RunspacePool
on the specified remote runspace computer.
|
| CreateRunspacePool(Int32, Int32, RunspaceConnectionInfo, PSHost, TypeTable, PSPrimitiveDictionary) |
Creates a RunspacePool
on the specified remote runspace compuer.
|
CreateRunspacePool(Int32, Int32, RunspaceConnectionInfo, PSHost, TypeTable)
Creates a RunspacePool
on the specified remote runspace compuer.
maxRunspaces
limits the number of Runspaces that can exist in this
pool. The minimum pool size is set to
minPoolSoze.
public static System.Management.Automation.Runspaces.RunspacePool CreateRunspacePool (int minRunspaces, int maxRunspaces, System.Management.Automation.Runspaces.RunspaceConnectionInfo connectionInfo, System.Management.Automation.Host.PSHost host, System.Management.Automation.Runspaces.TypeTable typeTable);
- minRunspaces
- Int32
The minimum number of Runspace that should exist in this pool. Should be greater than 1.
- maxRunspaces
- Int32
The maximum number of Runspaces that can exist in this pool. Should be greater than or equal to 1.
- connectionInfo
- RunspaceConnectionInfo
RunspaceConnectionInfo object describing the remote computer on which this runspace pool needs to be created
- host
- PSHost
Host associated with this runspace pool
- typeTable
- TypeTable
The TypeTable to use while deserializing/serializing remote objects. TypeTable has the following information used by serializer:
- SerializationMethod
- SerailizationDepth
- SpecificSerializationProperties TypeTable has the following inforamtion used by deserializer:
- TargetTypeForDeserializaiton
TypeConverter
If
typeTableis null no custom serialization/deserialization can be done. Default PowerShell behavior will be used in this case.
Maximum Pool size is less than 1. Minimum Pool size is less than 1.
connectionInfo is null
CreateRunspacePool()
Creates a RunspacePool using default RunspaceConfiguration with MaxRunspaces 1 and MinRunspaces 1.
public static System.Management.Automation.Runspaces.RunspacePool CreateRunspacePool ();
CreateRunspacePool(InitialSessionState)
Creates a RunspacePool using the supplied initialSessionState.
The minimum runspaces size is set to 1. The maximum runspaces size is
set to 1.
public static System.Management.Automation.Runspaces.RunspacePool CreateRunspacePool (System.Management.Automation.Runspaces.InitialSessionState initialSessionState);
- initialSessionState
- InitialSessionState
initialSessionState to use when creating a new Runspace in the pool.
RunspaceConfiguration is null.
CreateRunspacePool(Int32, Int32)
Creates a RunspacePool using default RunspaceConfiguration.
maxRunspaces
limits the number of Runspaces that can exist in this
pool. The minimum pool size is set to minPoolSoze.
public static System.Management.Automation.Runspaces.RunspacePool CreateRunspacePool (int minRunspaces, int maxRunspaces);
- minRunspaces
- Int32
The minimum number of Runspaces that exist in this pool. Should be greater than or equal to 1.
- maxRunspaces
- Int32
The maximum number of Runspaces that can exist in this pool. Should be greater than or equal to 1.
Maximum runspaces is less than 1. Minimum runspaces is less than 1.
CreateRunspacePool(Int32, Int32, PSHost)
Creates a RunspacePool using the supplied host,
minRunspaces and maxRunspaces
public static System.Management.Automation.Runspaces.RunspacePool CreateRunspacePool (int minRunspaces, int maxRunspaces, System.Management.Automation.Host.PSHost host);
- minRunspaces
- Int32
The minimum number of Runspaces that can exist in this pool. Should be greater than or equal to 1.
- maxRunspaces
- Int32
The maximum number of Runspaces that can exist in this pool. Should be greater than or equal to 1.
- host
- PSHost
The explicit PSHost implementation.
A local runspacepool instance.
host is null.
CreateRunspacePool(Int32, Int32, RunspaceConnectionInfo)
Creates a RunspacePool
on the specified remote computer.
maxRunspaces
limits the number of Runspaces that can exist in this
pool. The minimum pool size is set to
minPoolSoze.
public static System.Management.Automation.Runspaces.RunspacePool CreateRunspacePool (int minRunspaces, int maxRunspaces, System.Management.Automation.Runspaces.RunspaceConnectionInfo connectionInfo);
- minRunspaces
- Int32
The minimum number of Runspace that should exist in this pool. Should be greater than 1.
- maxRunspaces
- Int32
The maximum number of Runspaces that can exist in this pool. Should be greater than or equal to 1.
- connectionInfo
- RunspaceConnectionInfo
RunspaceConnectionInfo object describing the remote computer on which this runspace pool needs to be created
Maximum Pool size is less than 1. Minimum Pool size is less than 1.
connectionInfo is null
CreateRunspacePool(Int32, Int32, InitialSessionState, PSHost)
Creates a RunspacePool using the supplied initialSessionState,
minRunspaces and maxRunspaces
public static System.Management.Automation.Runspaces.RunspacePool CreateRunspacePool (int minRunspaces, int maxRunspaces, System.Management.Automation.Runspaces.InitialSessionState initialSessionState, System.Management.Automation.Host.PSHost host);
- minRunspaces
- Int32
The minimum number of Runspaces that can exist in this pool. Should be greater than or equal to 1.
- maxRunspaces
- Int32
The maximum number of Runspaces that can exist in this pool. Should be greater than or equal to 1.
- initialSessionState
- InitialSessionState
initialSessionState to use when creating a new Runspace in the pool.
- host
- PSHost
The explicit PSHost implementation.
runspaceConfiguration is null.
host is null.
Maximum runspaces is less than 1. Minimum runspaces is less than 1.
CreateRunspacePool(Int32, Int32, RunspaceConnectionInfo, PSHost)
Creates a RunspacePool
on the specified remote runspace computer.
maxRunspaces
limits the number of Runspaces that can exist in this
pool. The minimum pool size is set to
minPoolSoze.
public static System.Management.Automation.Runspaces.RunspacePool CreateRunspacePool (int minRunspaces, int maxRunspaces, System.Management.Automation.Runspaces.RunspaceConnectionInfo connectionInfo, System.Management.Automation.Host.PSHost host);
- minRunspaces
- Int32
The minimum number of Runspace that should exist in this pool. Should be greater than 1.
- maxRunspaces
- Int32
The maximum number of Runspaces that can exist in this pool. Should be greater than or equal to 1.
- connectionInfo
- RunspaceConnectionInfo
RunspaceConnectionInfo object describing the remote computer on which this runspace pool needs to be created
- host
- PSHost
Host associated with this runspace pool
Maximum Pool size is less than 1. Minimum Pool size is less than 1.
connectionInfo is null
CreateRunspacePool(Int32, Int32, RunspaceConnectionInfo, PSHost, TypeTable, PSPrimitiveDictionary)
Creates a RunspacePool
on the specified remote runspace compuer.
maxRunspaces
limits the number of Runspaces that can exist in this
pool. The minimum pool size is set to
minPoolSoze.
public static System.Management.Automation.Runspaces.RunspacePool CreateRunspacePool (int minRunspaces, int maxRunspaces, System.Management.Automation.Runspaces.RunspaceConnectionInfo connectionInfo, System.Management.Automation.Host.PSHost host, System.Management.Automation.Runspaces.TypeTable typeTable, System.Management.Automation.PSPrimitiveDictionary applicationArguments);
- minRunspaces
- Int32
The minimum number of Runspace that should exist in this pool. Should be greater than 1.
- maxRunspaces
- Int32
The maximum number of Runspaces that can exist in this pool. Should be greater than or equal to 1.
- connectionInfo
- RunspaceConnectionInfo
RunspaceConnectionInfo object describing the remote computer on which this runspace pool needs to be created
- host
- PSHost
Host associated with this runspace pool
- typeTable
- TypeTable
The TypeTable to use while deserializing/serializing remote objects. TypeTable has the following information used by serializer:
- SerializationMethod
- SerailizationDepth
- SpecificSerializationProperties TypeTable has the following inforamtion used by deserializer:
- TargetTypeForDeserializaiton
TypeConverter
If
typeTableis null no custom serialization/deserialization can be done. Default PowerShell behavior will be used in this case.
- applicationArguments
- PSPrimitiveDictionary
Application arguments the server can see in ApplicationArguments
Maximum Pool size is less than 1. Minimum Pool size is less than 1.
connectionInfo is null