INotifyObjectDisposing.Disposing Event
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Occurs when an object is being disposed.
public:
event EventHandler ^ Disposing;
event EventHandler Disposing;
member this.Disposing : EventHandler
Event Disposing As EventHandler
Event Type
Remarks
The handler for this event can be used to unsubscribe from events and release any references or resources. Most properties are still accessible in the handler for this event.
INotifyObjectDisposing complements the Disposed event where accessing any object member will cause an ObjectDisposedException error.