Process.ExitTime Property
.NET Framework 1.1
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;
Property Value
A DateTime that indicates when the associated process was terminated.
Exceptions
| Exception Type | Condition |
|---|---|
| PlatformNotSupportedException | You are accessing this member using Windows 98. |
Remarks
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.
Requirements
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:
- SecurityPermission for calling any members of System.Diagnostic.Process with full trust. Associated enumeration: PermissionState.Unrestricted
See Also
Process Class | Process Members | System.Diagnostics Namespace | Handle | ExitCode