DependencyObject.IComponent.Disposed DependencyObject.IComponent.Disposed Event

定義

表示處理元件 Disposed 事件的方法。Represents the method that handles the Disposed event of a component.

event EventHandler System.ComponentModel.IComponent.Disposed;
Custom Event Disposed As EventHandler Implements System.ComponentModel.IComponent

實作

備註

當您建立已處置的委派時, 您會識別處理事件的方法。When you create a Disposed delegate, you identify the method that handles the event. 若要使事件與您的事件處理常式產生關聯,請將委派的執行個體 (Instance) 加入至事件。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.

適用於