System.Management.Automatio ...


Runspace Class
Represents the runspace that is the operating environment for command pipelines. This class provides methods for opening the runspace, creating single and nested pipelines for the runspace, and closing the runspace.


Namespace: System.Management.Automation.Runspaces
Assembly: System.Management.Automation (in system.management.automation.dll)
Usage

Dim instance As Runspace
Syntax

Visual Basic
Public MustInherit Class Runspace
    Implements IDisposable
C#
public abstract class Runspace : IDisposable
C++
public ref class Runspace abstract : IDisposable
J#
public abstract class Runspace implements IDisposable
JScript
public abstract class Runspace implements IDisposable
Remarks

After a runspace is opened, Windows PowerShell host applications can run startup scripts that include the profiles and initialization scripts in the runspace configuration. For more information about runspace configuration, see the RunspaceConfiguration class.

The runspace does not provide output. Data is returned to the host application through the pipelines executing within the runspace. For more information about pipeline output, see the Pipeline class.

It is permitted to derive from this class. However, there is no established scenario for doing this, nor has deriving from this class been tested.


Inheritance Hierarchy

System.Object
  System.Management.Automation.Runspaces.Runspace
Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
Platforms

Development Platforms

Windows Server 2008, Windows Vista, Windows Server 2003, Windows XP, Windows 7, Windows 2008 R2

Target Platforms

Windows Server 2008, Windows Server 2003, Windows Vista, Windows XP, Windows 7, Windows 2008 R2
See Also

Page view tracker