Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我如何知道时间限制是否已过期或进程是否被用户终止?
Process p = Process.Start(this.EmergencyApp, npLang); p.WaitForExit(this.Timeout);
WaitForExit() 返回一个布尔值:
WaitForExit()
返回值 如果关联进程已退出,则为 true;否则为假。