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.

RunspaceFactory Methods

 

Updated: April 27, 2016

Applies To: Windows PowerShell

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

NameDescription
System_CAPS_pubmethodSystem_CAPS_staticCreateOutOfProcessRunspace(TypeTable)

Creates an out-of-process runspace by specifying a type table. Introduced in Windows PowerShell 3.0.

System_CAPS_pubmethodSystem_CAPS_staticCreateOutOfProcessRunspace(TypeTable, PowerShellProcessInstance)

Creates an out-of-process runspace by specifying a type table and an instance of a Windows PowerShell process. Introduced in Windows PowerShell 3.0.

System_CAPS_pubmethodSystem_CAPS_staticCreateRunspace()

Creates a single runspace that uses the default host and runspace configuration.

System_CAPS_pubmethodSystem_CAPS_staticCreateRunspace(InitialSessionState)

Creates a single runspace that uses the default host and specified initial session state information.

System_CAPS_pubmethodSystem_CAPS_staticCreateRunspace(PSHost)

Creates a single runspace that uses a custom host.

System_CAPS_pubmethodSystem_CAPS_staticCreateRunspace(PSHost, InitialSessionState)

Creates a single runspace that uses a custom host and initial session state information.

System_CAPS_pubmethodSystem_CAPS_staticCreateRunspace(PSHost, RunspaceConfiguration)

Creates a single runspace that uses a custom host and runspace configuration information.

System_CAPS_pubmethodSystem_CAPS_staticCreateRunspace(PSHost, RunspaceConnectionInfo)

Creates a single runspace that can be opened on a remote computer. The runspace uses a custom host and connection information.

System_CAPS_pubmethodSystem_CAPS_staticCreateRunspace(RunspaceConfiguration)

Creates a single runspace that uses the default host and specified runspace configuration information.

System_CAPS_pubmethodSystem_CAPS_staticCreateRunspace(RunspaceConnectionInfo)

Creates a single runspace that can be opened on a remote computer. The runspace uses the default host and specified connection information.

System_CAPS_pubmethodSystem_CAPS_staticCreateRunspace(RunspaceConnectionInfo, PSHost, TypeTable)

Creates a single runspace that can be opened on a remote computer. The runspace uses a custom host, connection information, and type table (serialization) information. This method is introduced in Windows PowerShell 2.0.

System_CAPS_pubmethodSystem_CAPS_staticCreateRunspace(RunspaceConnectionInfo, PSHost, TypeTable, PSPrimitiveDictionary)

Creates a single runspace that can be opened on a remote computer. The runspace uses a custom host, connection information, type table (serialization) information, and endpoint application arguments. This method is introduced in Windows PowerShell 2.0.

System_CAPS_pubmethodSystem_CAPS_staticCreateRunspace(RunspaceConnectionInfo, PSHost, TypeTable, PSPrimitiveDictionary, String)

Creates a runspace using the specified connection info, host name, table type, application arguments, and runspace name. Introduced in Windows PowerShell 4.0.

System_CAPS_pubmethodSystem_CAPS_staticCreateRunspacePool()

Creates a runspace pool that contains a single runspace. This runspace uses the default host and default runspace configuration. This method is introduced in Windows PowerShell 2.0.

System_CAPS_pubmethodSystem_CAPS_staticCreateRunspacePool(InitialSessionState)

Creates a pool of runspaces that use the specified initial session state. The initial session state defines the elements, such as cmdlets, scripts, and variables that are accessible within the runspace. This method is introduced in Windows PowerShell 2.0.

System_CAPS_pubmethodSystem_CAPS_staticCreateRunspacePool(Int32, Int32)

Creates a pool of runspaces that specifies the minimum and maximum number of opened runspaces for the pool. This method is introduced in Windows PowerShell 2.0.

System_CAPS_pubmethodSystem_CAPS_staticCreateRunspacePool(Int32, Int32, InitialSessionState, PSHost)

Creates a runspace pool that specifies minimum and maximum number of opened runspaces, and a custom host and initial session state information that is used by each runspace in the pool. This method is introduced in Windows PowerShell 2.0.

System_CAPS_pubmethodSystem_CAPS_staticCreateRunspacePool(Int32, Int32, PSHost)

Creates a pool of runspaces that specifies the minimum and maximum number of opened runspaces for the pool, and a custom host that is used by each runspace. This method is introduced in Windows PowerShell 2.0.

System_CAPS_pubmethodSystem_CAPS_staticCreateRunspacePool(Int32, Int32, RunspaceConnectionInfo)

Creates a runspace pool that contains runspaces that can be opened on a remote computer. The runspace pool specifies the minimum number of runspaces that Windows PowerShell maintains open, the maximum number of runspaces in the pool, and the connection information used to connect to a computer. This method is introduced in Windows PowerShell 2.0.

System_CAPS_pubmethodSystem_CAPS_staticCreateRunspacePool(Int32, Int32, RunspaceConnectionInfo, PSHost)

Creates a runspace pool that contains runspaces that can be opened on a remote computer. The runspace pool specifies the minimum number of runspaces that Windows PowerShell maintains open, the maximum number of runspaces in the pool, a custom host, and the connection information used to connect to a computer. This method is introduced in Windows PowerShell 2.0.

System_CAPS_pubmethodSystem_CAPS_staticCreateRunspacePool(Int32, Int32, RunspaceConnectionInfo, PSHost, TypeTable)

Creates a runspace pool that contains runspaces that can be opened on a remote computer. The runspace pool specifies the minimum number of runspaces that Windows PowerShell maintains open, the maximum number of runspaces in the pool, a custom host, connection information, and type table information used for serialization. This method is introduced in Windows PowerShell 2.0.

System_CAPS_pubmethodSystem_CAPS_staticCreateRunspacePool(Int32, Int32, RunspaceConnectionInfo, PSHost, TypeTable, PSPrimitiveDictionary)

Creates a runspace pool that contains runspaces that can be opened on a remote computer. The runspace pool specifies the minimum number of runspaces that Windows PowerShell maintains open, the maximum number of runspaces in the pool, a custom host, connection information, type table (serialization) information, and endpoint application arguments. This method is introduced in Windows PowerShell 2.0.

Return to top

Community Additions

Show: