Share via


Sys.Component.disposing Event

Raised when the dispose method is called for a component.

aComponent.add_disposing(handler);
aComponent.remove_disposing(handler);

Parameters

Parameter

Description

handler

The event handler function to add or remove.

Remarks

Use the add_disposing and remove_disposing functions to add or remove handlers for this event. To raise the event outside the dispose method, call the getHandler method of the current EventHandlerList object, and then call the function it returns.

See Also

Tasks

Creating Custom Non-Visual Client Components

Reference

Sys.Component Class

Concepts

Defining Custom Component Properties and Raising PropertyChanged Events

Releasing Component Resources

Other Resources

Language Reference