Updated: April 27, 2016
Applies To: Windows PowerShell
Gets or sets the runspace that is used when the pipeline is invoked. The runspace is the operating environment that defines which commands, variables, and other elements are available. This property is introduced in Windows PowerShell 2.0.
Assembly: System.Management.Automation (in System.Management.Automation.dll)
This property and the RunspacePool property are mutually exclusive; setting one of them resets the other to null.
For more information on how to use runspaces, see Writing a Windows PowerShell Host Application.