C# Class GSF.Console.Command.CommandProcess

Inheritance: IDisposable
Afficher le fichier Open project: GridProtectionAlliance/gsf

Méthodes publiques

Méthode Description
CommandProcess ( string fileName, string arguments ) : System

Creates a new CommandProcess instance.

Dispose ( ) : void

Releases all the resources used by the CommandProcess object.

Execute ( int timeout ) : bool

Attempts to execute process.

Private Methods

Méthode Description
Dispose ( bool disposing ) : void
m_process_ErrorDataReceived ( object sender, DataReceivedEventArgs e ) : void
m_process_OutputDataReceived ( object sender, DataReceivedEventArgs e ) : void

Method Details

CommandProcess() public méthode

Creates a new CommandProcess instance.
public CommandProcess ( string fileName, string arguments ) : System
fileName string File name to execute.
arguments string Command line parameters, if any. Set to empty string for none.
Résultat System

Dispose() public méthode

Releases all the resources used by the CommandProcess object.
public Dispose ( ) : void
Résultat void

Execute() public méthode

Attempts to execute process.
public Execute ( int timeout ) : bool
timeout int Timeout, in milliseconds, to wait for command line operation to complete.
Résultat bool