This documentation is archived and is not being maintained.

Process.ExitTime Property

Gets the time that the associated process exited.

[Visual Basic]
Public ReadOnly Property ExitTime As DateTime
public DateTime ExitTime {get;}
public: __property DateTime get_ExitTime();
public function get ExitTime() : DateTime;

Property Value

A DateTime that indicates when the associated process was terminated.


Exception Type Condition
PlatformNotSupportedException You are accessing this member using Windows 98.


If the process has not terminated, attempting to retrieve the ExitTime property throws an exception. Use HasExited before getting the ExitTime property to determine whether the associated process has terminated.


Platforms: Windows NT Server 4.0, Windows NT Workstation 4.0, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family

.NET Framework Security: 

See Also

Process Class | Process Members | System.Diagnostics Namespace | Handle | ExitCode