質問

How do I know if the time limit has expired or the process was terminated by the user?

Process p = Process.Start(this.EmergencyApp, npLang);
p.WaitForExit(this.Timeout);
役に立ちましたか?

解決

WaitForExit() returns a boolean:

Return Value
true if the associated process has exited; otherwise, false.

ライセンス: CC-BY-SA帰属
所属していません StackOverflow
scroll top