C# Class PowerShellHtmlConsole.PSWrapper

Inheritance: IPSRemoteHostCallback, IDisposable
Afficher le fichier Open project: SzymonPobiega/PowerShellHtmlConsole Class Usage Examples

Méthodes publiques

Méthode Description
Dispose ( ) : void
Exit ( int code ) : void
PSWrapper ( InputOutputBuffers buffers, System.Action exitCallback ) : System
TryExecute ( string cmd ) : void

Private Methods

Méthode Description
Execute ( string cmd ) : void
ReportException ( Exception e ) : void

To display an exception using the display formatter, run a second pipeline passing in the error record. The runtime will bind this to the $input variable, which is why $input is being piped to the Out-String cmdlet. The WriteErrorLine method is called to make sure the error gets displayed in the correct error color.

Method Details

Dispose() public méthode

public Dispose ( ) : void
Résultat void

Exit() public méthode

public Exit ( int code ) : void
code int
Résultat void

PSWrapper() public méthode

public PSWrapper ( InputOutputBuffers buffers, System.Action exitCallback ) : System
buffers InputOutputBuffers
exitCallback System.Action
Résultat System

TryExecute() public méthode

public TryExecute ( string cmd ) : void
cmd string
Résultat void