Use ExitCode to get the status that the system process returned when it exited. You can use the exit code much like an integer return value from a main() procedure. How you choose to implement it is specific to your application.Developers usually indicate a successful exit by an ExitCode value of zero, and designate errors by nonzero values that the calling method can use to identify the cause of an abnormal process termination. It is not necessary to follow these guidelines, but they are the convention.If you try to get the ExitCode before the process has exited, the attempt throws an exception. Examine the HasExited property first to verify whether the associated process has terminated.You can use the CloseMainWindow or the Kill method to cause an associated process to exit.你的没有结束吧
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货