Printer Friendly Version      Send     
Click to Rate and Give Feedback
Runspace Class
Runspace Class
Represents the runspace that provides communications between the Windows PowerShell runtime and the host application. 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)

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

After a runspace is opened, Windows PowerShell host applications can runs 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.

For more information about how host applications, the runspace, and pipelines work together, see Windows PowerShell Runspaces in the Windows PowerShell Programmer's Guide.


System.Object
  System.Management.Automation.Runspaces.Runspace
Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Development Platforms

Windows Server 2008, Windows Vista, Windows Server 2003, Windows XP

Target Platforms

Windows Server 2008, Windows Server 2003, Windows Vista, Windows XP
© 2008 Microsoft Corporation. All rights reserved. Terms of Use  |  Trademarks  |  Privacy Statement
Page view tracker