C# Class Monobjc.Tools.Utilities.ProcessHelper

Helper class used to launch an external process and to capture its output.
Inheritance: IDisposable
Afficher le fichier Open project: Monobjc/monobjc-tools Class Usage Examples

Méthodes publiques

Méthode Description
Dispose ( ) : void

Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.

Execute ( ) : int

Executes this external process.

ExecuteAndReturnOutput ( ) : String

Executes this external process.

ProcessHelper ( String command, String arguments ) : System

Initializes a new instance of the ProcessHelper class.

Private Methods

Méthode Description
ProcessErrorDataReceived ( object sender, DataReceivedEventArgs e ) : void

Handles the ErrorDataReceived event of the Process control.

ProcessOutputDataReceived ( object sender, DataReceivedEventArgs e ) : void

Handles the OutputDataReceived event of the Process control.

Method Details

Dispose() public méthode

Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
public Dispose ( ) : void
Résultat void

Execute() public méthode

Executes this external process.
public Execute ( ) : int
Résultat int

ExecuteAndReturnOutput() public méthode

Executes this external process.
public ExecuteAndReturnOutput ( ) : String
Résultat String

ProcessHelper() public méthode

Initializes a new instance of the ProcessHelper class.
public ProcessHelper ( String command, String arguments ) : System
command String The command.
arguments String The arguments.
Résultat System