Export (0) Print
Expand All

LinqDataSource.ContextDisposing Event

Occurs before disposing the context type object.

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

'Declaration
Public Event ContextDisposing As EventHandler(Of LinqDataSourceDisposeEventArgs)

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

Supported in: 4.6, 4.5, 4, 3.5
Show:
© 2015 Microsoft