C# 클래스 PowerShellHtmlConsole.PSRemoteHost

A sample implementation of the PSHost abstract class for console applications. Not all members are implemented. Those that are not implemented throw a NotImplementedException exception.
상속: System.Management.Automation.Host.PSHost, IHostSupportsInteractiveSession
파일 보기 프로젝트 열기: SzymonPobiega/PowerShellHtmlConsole 1 사용 예제들

공개 메소드들

메소드 설명
EnterNestedPrompt ( ) : void

Instructs the host to interrupt the currently running pipeline and start a new nested input loop. Not implemented by this example class. The call fails with an exception.

ExitNestedPrompt ( ) : void

Instructs the host to exit the currently running input loop. Not implemented by this example class. The call fails with an exception.

NotifyBeginApplication ( ) : void

Notifies the host that the Windows PowerShell runtime is about to execute a legacy command-line application. Typically it is used to restore state that was changed by a child process after the child exits. This implementation does nothing and simply returns.

NotifyEndApplication ( ) : void

Notifies the host that the Windows PowerShell engine has completed the execution of a legacy command. Typically it is used to restore state that was changed by a child process after the child exits. This implementation does nothing and simply returns.

PSRemoteHost ( InputOutputBuffers buffers, IPSRemoteHostCallback callbacks ) : System
PopRunspace ( ) : void

Requests to close a PSSession.

PushRunspace ( System.Management.Automation.Runspaces.Runspace runspace ) : void

Requests to open a PSSession.

SetShouldExit ( int exitCode ) : void

Indicate to the host application that exit has been requested. Pass the exit code that the host application should use when exiting the process.

메소드 상세

EnterNestedPrompt() 공개 메소드

Instructs the host to interrupt the currently running pipeline and start a new nested input loop. Not implemented by this example class. The call fails with an exception.
public EnterNestedPrompt ( ) : void
리턴 void

ExitNestedPrompt() 공개 메소드

Instructs the host to exit the currently running input loop. Not implemented by this example class. The call fails with an exception.
public ExitNestedPrompt ( ) : void
리턴 void

NotifyBeginApplication() 공개 메소드

Notifies the host that the Windows PowerShell runtime is about to execute a legacy command-line application. Typically it is used to restore state that was changed by a child process after the child exits. This implementation does nothing and simply returns.
public NotifyBeginApplication ( ) : void
리턴 void

NotifyEndApplication() 공개 메소드

Notifies the host that the Windows PowerShell engine has completed the execution of a legacy command. Typically it is used to restore state that was changed by a child process after the child exits. This implementation does nothing and simply returns.
public NotifyEndApplication ( ) : void
리턴 void

PSRemoteHost() 공개 메소드

public PSRemoteHost ( InputOutputBuffers buffers, IPSRemoteHostCallback callbacks ) : System
buffers InputOutputBuffers
callbacks IPSRemoteHostCallback
리턴 System

PopRunspace() 공개 메소드

Requests to close a PSSession.
public PopRunspace ( ) : void
리턴 void

PushRunspace() 공개 메소드

Requests to open a PSSession.
public PushRunspace ( System.Management.Automation.Runspaces.Runspace runspace ) : void
runspace System.Management.Automation.Runspaces.Runspace Runspace to use.
리턴 void

SetShouldExit() 공개 메소드

Indicate to the host application that exit has been requested. Pass the exit code that the host application should use when exiting the process.
public SetShouldExit ( int exitCode ) : void
exitCode int The exit code that the host application should use.
리턴 void