LinqDataSource.ContextDisposing Event


Occurs before disposing the context type object.

Namespace:   System.Web.UI.WebControls
Assembly:  System.Web.Extensions (in System.Web.Extensions.dll)

public event 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.

.NET Framework
Available since 3.5
Return to top