LinqDataSourceDisposeEventArgs Class
Provides data for the ContextDisposing event.
Assembly: System.Web.Extensions (in System.Web.Extensions.dll)
You create a handler for the ContextDisposing event to perform clean-up that is specific to the data context object before the object is destroyed. The LinqDataSourceDisposeEventArgs object contains the data context object that is used when you are selecting, updating, inserting, or deleting data. The ContextDisposing event is raised during the Unload event before the LinqDataSource control disposes the context object.
The data context object is the type specified in the ContextTypeName property or the type set to the ObjectInstance of the LinqDataSourceContextEventArgs class.
When the LinqDataSource control interacts with a database, the ContextTypeName property is set to the DataContext object that represents the database. When the LinqDataSource control interacts with an in-memory data collection, the ContextTypeName property is set to the object that contains the data collection.
- AspNetHostingPermission
for operating in a hosted environment. Demand value: LinkDemand; Permission value: Minimal.
- AspNetHostingPermission
for operating in a hosted environment. Demand value: InheritanceDemand; Permission value: Minimal.
System.EventArgs
System.ComponentModel.CancelEventArgs
System.Web.UI.WebControls.LinqDataSourceDisposeEventArgs
Windows 7, Windows Vista, Windows XP SP2, Windows Server 2008 R2, Windows Server 2008, Windows Server 2003
The .NET Framework and .NET Compact Framework do not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.