次の方法で共有


INotifyObjectDisposing.Disposing Event

Definition

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.

Applies to