Component.Disposed Component.Disposed Component.Disposed Component.Disposed Event

定義

當此元件由 Dispose() 方法的呼叫處置時發生。Occurs when the component is disposed by a call to the Dispose() method.

public:
 virtual event EventHandler ^ Disposed;
[System.ComponentModel.Browsable(false)]
public event EventHandler Disposed;
member this.Disposed : EventHandler 
Public Custom Event Disposed As 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 the event handler delegates, see Handling and Raising Events.

適用於

另請參閱