RunspaceFactory.CreateRunspace Method (RunspaceConnectionInfo, PSHost, TypeTable)
Updated: April 27, 2016
Applies To: Windows PowerShell
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.
Assembly: System.Management.Automation (in System.Management.Automation.dll)
public static Runspace CreateRunspace( RunspaceConnectionInfo connectionInfo, PSHost host, TypeTable typeTable )
An object that derives from the RunspaceConnectionInfo abstract class. This object defines the information used to connect to a specific computer.
A PSHost object that represents the host that provides communications between Windows PowerShell and the user.
A runspace is the operating environment used when invoking the commands of a pipeline. After the runspace is created, it must be opened by using one of the following methods before it can be used: