Adds an event handler to listen to the Disposed event on the application.
[Visual Basic] Public Overridable Event Disposed As EventHandler [C#] public virtual event EventHandler Disposed; [C++] public: virtual __event EventHandler* Disposed;
[JScript] In JScript, you can handle the events defined by a class, but you cannot define your own.
The event handler receives an argument of type EventArgs.
When you create a Disposed delegate, you identify the method that handles the event. To associate the event with your event handler, add an instance of the delegate to the event. The event handler is called whenever the event occurs, unless you remove the delegate.
Platforms: Windows 2000, Windows XP Professional, Windows Server 2003 family