Method process.waitForExit
Overload
Waits until the process ends.
public static bool waitForExit(Seconds timeout, int processId, out int exitCode)
Parameters
timeout (Seconds)
Timeout, seconds. Can be 0 (infinite), >0 (exception) or <0 (no exception). More info: Wait timeout. |
processId (int)
Process id. If invalid but not 0, the function returns |
exitCode (int)
Receives the exit code. |
Returns
bool
|
Exceptions
TimeoutException
timeout time has expired (if > 0). |
AuException
Failed. |
ArgumentException
processId is 0. |