문제

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