Currently a process object Exited event will be fired with parameter object and EventArgs. But we don't know whether the process exited normally or not.
So I hope that the Exited event can attach a property into args which indicated the process exit type(normally exit or abnormally exit).
var a = new Process();
a.Exited += (obj, args) => {
switch (args.ExitType)
{
case ProcessExitType.Normally:
....
break;
case ProcessExitType.Abnormally
....
break;
}
}
.....
Currently a process object Exited event will be fired with parameter object and EventArgs. But we don't know whether the process exited normally or not.
So I hope that the Exited event can attach a property into args which indicated the process exit type(normally exit or abnormally exit).