C# 클래스 PsTest.RunspaceWrapper

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.
상속: IRunspace
파일 보기 프로젝트 열기: knutkj/pstest

Private Properties

프로퍼티 타입 설명

공개 메소드들

메소드 설명
CreateNestedPipeline ( string command, bool addToHistory ) : IPipeline

Creates a pipeline for the runspace while an existing pipeline is executing. This method also specifies the commands (such as cmdlets and scripts) that can be executed by the pipeline and specifies a Boolean value that indicates that pipeline execution is added to the history of the runspace.

RunspaceWrapper ( System.Management.Automation.Runspaces.Runspace runspace ) : System

Initializes a new instance of a runspace wrapper wrapping the specified runspace.

메소드 상세

CreateNestedPipeline() 공개 메소드

Creates a pipeline for the runspace while an existing pipeline is executing. This method also specifies the commands (such as cmdlets and scripts) that can be executed by the pipeline and specifies a Boolean value that indicates that pipeline execution is added to the history of the runspace.
public CreateNestedPipeline ( string command, bool addToHistory ) : IPipeline
command string /// Cmdlets, scripts, native applications, executables, or files /// available to the runspace through the pipeline. ///
addToHistory bool /// true indicates that pipeline execution is added to the /// history of the runspace; otherwise false is returned. ///
리턴 IPipeline

RunspaceWrapper() 공개 메소드

Initializes a new instance of a runspace wrapper wrapping the specified runspace.
public RunspaceWrapper ( System.Management.Automation.Runspaces.Runspace runspace ) : System
runspace System.Management.Automation.Runspaces.Runspace /// The runspace to wrap. ///
리턴 System