C# Класс Monobjc.Tools.Utilities.ProcessHelper

Helper class used to launch an external process and to capture its output.
Наследование: IDisposable
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
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.

Приватные методы

Метод Описание
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.

Описание методов

Dispose() публичный Метод

Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
public Dispose ( ) : void
Результат void

Execute() публичный Метод

Executes this external process.
public Execute ( ) : int
Результат int

ExecuteAndReturnOutput() публичный Метод

Executes this external process.
public ExecuteAndReturnOutput ( ) : String
Результат String

ProcessHelper() публичный Метод

Initializes a new instance of the ProcessHelper class.
public ProcessHelper ( String command, String arguments ) : System
command String The command.
arguments String The arguments.
Результат System