次の方法で共有


INotifyDisposable.Disposed Event

Definition

Occurs when the object is disposed.

event EventHandler Disposed;
member this.Disposed : EventHandler 
Event Disposed As EventHandler 

Event Type

Remarks

If the object has already been disposed, an attempt to add a handler will result in the handler being invoked synchronously before the returning without retaining a reference.

Once disposed, all references to handlers are removed.

Applies to