C# Class Monobjc.Tools.Utilities.ProcessHelper

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

Public Methods

Method 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

Method 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 method

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

Execute() public method

Executes this external process.
public Execute ( ) : int
return int

ExecuteAndReturnOutput() public method

Executes this external process.
public ExecuteAndReturnOutput ( ) : String
return String

ProcessHelper() public method

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