IComponent.Disposed 事件

定義

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

public:
 event EventHandler ^ Disposed;
event EventHandler? Disposed;
event EventHandler Disposed;
member this.Disposed : EventHandler 
Event Disposed As EventHandler 

事件類型

EventHandler

備註

在建立 Disposed 委派時,您要識別處理事件的方法。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. 如需事件處理常式委派的詳細資訊,請參閱 處理和引發事件For more information about event handler delegates, see Handling and Raising Events.

適用於

另請參閱