IShellProcess

Assembly: Host;

Description

The IShellProcess interface is used to start console applications and get their execution result.

Inheritance Hierarchy

          IProcess

          IShellProcess

Comments

To start a console application, initialize the object of the ShellProcess class, set up start parameters (object of the ShellExecuteInfo class) and execute the IProcess.Start method. The application will be executed in the background. To stop the application, use the IProcess.Kill method.

Implementation of IShellProcess allows for starting applications in Windows OS and Linux OS.

Properties

  Property name Brief description

Error

The Error property determines contents of a standard error stream.

Output

The Output property determines contents of a standard output stream.

The properties inherited from IProcess

  Property name Brief description

ExitCode

The ExitCode property returns the process exit code.

HasExited

The HasExited property returns whether the process is completed.

Methods inherited from IProcess

  Method name Brief description

Kill

The Kill method stops process execution.

Start

The Start method starts the process.

See also:

Host Assembly Interfaces