LinqDataSource.ContextDisposing 事件

定義

在處置內容型別物件之前發生。Occurs before disposing the context type object.

public:
 event EventHandler<System::Web::UI::WebControls::LinqDataSourceDisposeEventArgs ^> ^ ContextDisposing;
public event EventHandler<System.Web.UI.WebControls.LinqDataSourceDisposeEventArgs> ContextDisposing;
member this.ContextDisposing : EventHandler<System.Web.UI.WebControls.LinqDataSourceDisposeEventArgs> 
Public Custom Event ContextDisposing As EventHandler(Of LinqDataSourceDisposeEventArgs) 

事件類型

EventHandler<LinqDataSourceDisposeEventArgs>

備註

您可以處理 ContextDisposing 事件以手動處置物件,或在物件終結之前執行物件特定的清除。You handle the ContextDisposing event to dispose the object manually, or to perform clean-up that is specific to the object before the object is destroyed.

適用於