This documentation is archived and is not being maintained.

_AppDomain.ProcessExit Event

Occurs when a process is about to exit.

[Visual Basic]
Event ProcessExit As EventHandler
[C#]
event EventHandler ProcessExit;
[C++]
__event EventHandler* ProcessExit;

[JScript] In JScript, you can handle the events defined by a class, but you cannot define your own.

Event Data

The event handler receives an argument of type EventArgs.

Remarks

The EventHandler for this event can perform termination activities, such as closing files, releasing storage and so on, before the process ends.

For more information about handling events, see Consuming Events.

Requirements

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

See Also

_AppDomain Interface | _AppDomain Members | System Namespace

Show: