a575963da9
Former-commit-id: da6be194a6b1221998fc28233f2503bd61dd9d14
204 lines
10 KiB
XML
204 lines
10 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<Type Name="ObjectDataSourceDisposingEventArgs" FullName="System.Web.UI.WebControls.ObjectDataSourceDisposingEventArgs">
|
|
<TypeSignature Language="C#" Value="public class ObjectDataSourceDisposingEventArgs : System.ComponentModel.CancelEventArgs" />
|
|
<AssemblyInfo>
|
|
<AssemblyName>System.Web</AssemblyName>
|
|
<AssemblyVersion>2.0.0.0</AssemblyVersion>
|
|
</AssemblyInfo>
|
|
<Base>
|
|
<BaseTypeName>System.ComponentModel.CancelEventArgs</BaseTypeName>
|
|
</Base>
|
|
<Interfaces />
|
|
<Docs>
|
|
<since version=".NET 2.0" />
|
|
<remarks>
|
|
<attribution license="cc4" from="Microsoft" modified="false" />
|
|
<para>The <see cref="T:System.Web.UI.WebControls.ObjectDataSourceDisposingEventArgs" /> class is used in the <see cref="M:System.Web.UI.WebControls.ObjectDataSourceView.OnObjectDisposing(System.Web.UI.WebControls.ObjectDataSourceDisposingEventArgs)" /> method to provide access to the business object instance after any data operations that are using the <see cref="T:System.Web.UI.WebControls.ObjectDataSource" /> control and business object are performed, but before the business object is destroyed. The business object is accessed using the <see cref="P:System.Web.UI.WebControls.ObjectDataSourceDisposingEventArgs.ObjectInstance" /> property. By adding a delegate to handle the <see cref="E:System.Web.UI.WebControls.ObjectDataSource.ObjectDisposing" /> event, you can access any publicly exposed members of the business object to perform any final work or clean up. </para>
|
|
<para>The <see cref="M:System.Web.UI.WebControls.ObjectDataSourceView.OnObjectDisposing(System.Web.UI.WebControls.ObjectDataSourceDisposingEventArgs)" /> method is not called by the <see cref="T:System.Web.UI.WebControls.ObjectDataSource" /> control, if the method that performs data operations is a static method. No business object instance is created when the method is static.</para>
|
|
<para>The <see cref="T:System.Web.UI.WebControls.ObjectDataSource" /> control exposes many events that you can handle to work with the underlying business object at various times in its lifecycle. The following table lists the events and the associated <see cref="T:System.EventArgs" /> classes and event handler delegates.</para>
|
|
<list type="table">
|
|
<listheader>
|
|
<item>
|
|
<term>
|
|
<para>Event</para>
|
|
</term>
|
|
<description>
|
|
<para>EventArgs</para>
|
|
</description>
|
|
<description>
|
|
<para>EventHandler</para>
|
|
</description>
|
|
</item>
|
|
</listheader>
|
|
<item>
|
|
<term>
|
|
<para>
|
|
<see cref="E:System.Web.UI.WebControls.ObjectDataSource.ObjectCreating" />.</para>
|
|
<para>Occurs immediately before the instance of the business object is created.</para>
|
|
</term>
|
|
<description>
|
|
<para>
|
|
<see cref="T:System.Web.UI.WebControls.ObjectDataSourceEventArgs" />
|
|
</para>
|
|
</description>
|
|
<description>
|
|
<para>
|
|
<see cref="T:System.Web.UI.WebControls.ObjectDataSourceObjectEventHandler" />
|
|
</para>
|
|
</description>
|
|
</item>
|
|
<item>
|
|
<term>
|
|
<para>
|
|
<see cref="E:System.Web.UI.WebControls.ObjectDataSource.ObjectCreated" />.</para>
|
|
<para>Occurs immediately after the instance of the business object is created.</para>
|
|
</term>
|
|
<description>
|
|
<para>
|
|
<see cref="T:System.Web.UI.WebControls.ObjectDataSourceEventArgs" />
|
|
</para>
|
|
</description>
|
|
<description>
|
|
<para>
|
|
<see cref="T:System.Web.UI.WebControls.ObjectDataSourceObjectEventHandler" />
|
|
</para>
|
|
</description>
|
|
</item>
|
|
<item>
|
|
<term>
|
|
<para>
|
|
<see cref="E:System.Web.UI.WebControls.ObjectDataSource.Selecting" />.</para>
|
|
<para>Occurs before the data is retrieved.</para>
|
|
</term>
|
|
<description>
|
|
<para>
|
|
<see cref="T:System.Web.UI.WebControls.ObjectDataSourceSelectingEventArgs" />
|
|
</para>
|
|
</description>
|
|
<description>
|
|
<para>
|
|
<see cref="T:System.Web.UI.WebControls.ObjectDataSourceSelectingEventHandler" />
|
|
</para>
|
|
</description>
|
|
</item>
|
|
<item>
|
|
<term>
|
|
<para>
|
|
<see cref="E:System.Web.UI.WebControls.ObjectDataSource.Inserting" />, <see cref="E:System.Web.UI.WebControls.ObjectDataSource.Updating" />, and <see cref="E:System.Web.UI.WebControls.ObjectDataSource.Deleting" />.</para>
|
|
<para>Occur before an insert, update, or delete operation is performed.</para>
|
|
</term>
|
|
<description>
|
|
<para>
|
|
<see cref="T:System.Web.UI.WebControls.ObjectDataSourceMethodEventArgs" />
|
|
</para>
|
|
</description>
|
|
<description>
|
|
<para>
|
|
<see cref="T:System.Web.UI.WebControls.ObjectDataSourceMethodEventHandler" />
|
|
</para>
|
|
</description>
|
|
</item>
|
|
<item>
|
|
<term>
|
|
<para>
|
|
<see cref="E:System.Web.UI.WebControls.ObjectDataSource.Selected" />
|
|
</para>
|
|
<para>Occurs after the data is retrieved.</para>
|
|
</term>
|
|
<description>
|
|
<para>
|
|
<see cref="T:System.Web.UI.WebControls.ObjectDataSourceStatusEventArgs" />
|
|
</para>
|
|
</description>
|
|
<description>
|
|
<para>
|
|
<see cref="T:System.Web.UI.WebControls.ObjectDataSourceStatusEventHandler" />
|
|
</para>
|
|
</description>
|
|
</item>
|
|
<item>
|
|
<term>
|
|
<para>
|
|
<see cref="E:System.Web.UI.WebControls.ObjectDataSource.Inserted" />, <see cref="E:System.Web.UI.WebControls.ObjectDataSource.Updated" />, and <see cref="E:System.Web.UI.WebControls.ObjectDataSource.Deleted" />.</para>
|
|
<para>Occur after the insert, update, or delete operation is completed.</para>
|
|
</term>
|
|
<description>
|
|
<para>
|
|
<see cref="T:System.Web.UI.WebControls.ObjectDataSourceStatusEventArgs" />
|
|
</para>
|
|
</description>
|
|
<description>
|
|
<para>
|
|
<see cref="T:System.Web.UI.WebControls.ObjectDataSourceStatusEventHandler" />
|
|
</para>
|
|
</description>
|
|
</item>
|
|
<item>
|
|
<term>
|
|
<para>
|
|
<see cref="E:System.Web.UI.WebControls.ObjectDataSource.ObjectDisposing" />.</para>
|
|
<para>Occurs before a business object is destroyed.</para>
|
|
</term>
|
|
<description>
|
|
<para>
|
|
<see cref="T:System.Web.UI.WebControls.ObjectDataSourceDisposingEventArgs" />
|
|
</para>
|
|
</description>
|
|
<description>
|
|
<para>
|
|
<see cref="T:System.Web.UI.WebControls.ObjectDataSourceDisposingEventHandler" />
|
|
</para>
|
|
</description>
|
|
</item>
|
|
</list>
|
|
</remarks>
|
|
<summary>
|
|
<attribution license="cc4" from="Microsoft" modified="false" />
|
|
<para>Provides data for the <see cref="E:System.Web.UI.WebControls.ObjectDataSource.ObjectDisposing" /> event of the <see cref="T:System.Web.UI.WebControls.ObjectDataSource" /> control.</para>
|
|
</summary>
|
|
</Docs>
|
|
<Members>
|
|
<Member MemberName=".ctor">
|
|
<MemberSignature Language="C#" Value="public ObjectDataSourceDisposingEventArgs (object objectInstance);" />
|
|
<MemberType>Constructor</MemberType>
|
|
<Parameters>
|
|
<Parameter Name="objectInstance" Type="System.Object" />
|
|
</Parameters>
|
|
<Docs>
|
|
<remarks>To be added.</remarks>
|
|
<since version=".NET 2.0" />
|
|
<summary>
|
|
<attribution license="cc4" from="Microsoft" modified="false" />
|
|
<para>Initializes a new instance of the <see cref="T:System.Web.UI.WebControls.ObjectDataSourceDisposingEventArgs" /> class using the specified object.</para>
|
|
</summary>
|
|
<param name="objectInstance">
|
|
<attribution license="cc4" from="Microsoft" modified="false" />The business object with which the <see cref="T:System.Web.UI.WebControls.ObjectDataSource" /> interacts to perform data operations.</param>
|
|
</Docs>
|
|
<AssemblyInfo>
|
|
<AssemblyVersion>2.0.0.0</AssemblyVersion>
|
|
</AssemblyInfo>
|
|
</Member>
|
|
<Member MemberName="ObjectInstance">
|
|
<MemberSignature Language="C#" Value="public object ObjectInstance { get; }" />
|
|
<MemberType>Property</MemberType>
|
|
<ReturnValue>
|
|
<ReturnType>System.Object</ReturnType>
|
|
</ReturnValue>
|
|
<Docs>
|
|
<value>To be added.</value>
|
|
<since version=".NET 2.0" />
|
|
<remarks>
|
|
<attribution license="cc4" from="Microsoft" modified="false" />
|
|
<para>If the data operation methods (<see cref="P:System.Web.UI.WebControls.ObjectDataSource.SelectMethod" />, <see cref="P:System.Web.UI.WebControls.ObjectDataSource.UpdateMethod" />, <see cref="P:System.Web.UI.WebControls.ObjectDataSource.DeleteMethod" />, and <see cref="P:System.Web.UI.WebControls.ObjectDataSource.InsertMethod" />) are instance methods, an instance of the business object is created before the method is executed. You can prevent the business object from being created for each call by saving the object in the <see cref="P:System.Web.UI.WebControls.ObjectDataSourceDisposingEventArgs.ObjectInstance" /> property in the <see cref="E:System.Web.UI.WebControls.ObjectDataSource.ObjectDisposing" /> event handler. In subsequent <see cref="E:System.Web.UI.WebControls.ObjectDataSource.ObjectCreating" /> events, you can retrieve the business object from the <see cref="P:System.Web.UI.WebControls.ObjectDataSourceEventArgs.ObjectInstance" /> property.</para>
|
|
</remarks>
|
|
<summary>
|
|
<attribution license="cc4" from="Microsoft" modified="false" />
|
|
<para>Gets an object that represents the business object with which the <see cref="T:System.Web.UI.WebControls.ObjectDataSource" /> control performs data operations.</para>
|
|
</summary>
|
|
</Docs>
|
|
<AssemblyInfo>
|
|
<AssemblyVersion>2.0.0.0</AssemblyVersion>
|
|
</AssemblyInfo>
|
|
</Member>
|
|
</Members>
|
|
</Type> |