Gets the time that the associated process exited.
[Visual Basic] Public ReadOnly Property ExitTime As DateTime [C#] public DateTime ExitTime {get;} [C++] public: __property DateTime get_ExitTime(); [JScript] public function get ExitTime() : DateTime;
A DateTime that indicates when the associated process was terminated.
If the process has not terminated, attempting to retrieve the ExitTime causes an exception. Use HasExited before getting the ExitTime to determine if the associated process has terminated.
Process Class | Process Members | System.Diagnostics Namespace | Handle | ExitCode