Represents the method that handles the Disposed event of a component.
Event Disposed As EventHandler
Dim instance As IComponent Dim handler As EventHandler AddHandler instance.Disposed, handler
event EventHandler Disposed
event EventHandler^ Disposed { void add (EventHandler^ value); void remove (EventHandler^ value); }
JScript does not support events.
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. For more information about event handler delegates, see Events and Delegates.
Windows 7, Windows Vista, Windows XP SP2, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP Starter Edition, Windows Server 2008 R2, Windows Server 2008, Windows Server 2003, Windows Server 2000 SP4, Windows Millennium Edition, Windows 98, Windows CE, Windows Mobile for Smartphone, Windows Mobile for Pocket PC, Xbox 360, Zune