﻿<?xml version="1.0" encoding="utf-8"?><Type Name="SqlDataSourceSelectingEventArgs" FullName="System.Web.UI.WebControls.SqlDataSourceSelectingEventArgs"><TypeSignature Language="C#" Value="public class SqlDataSourceSelectingEventArgs : System.Web.UI.WebControls.SqlDataSourceCommandEventArgs" /><AssemblyInfo><AssemblyName>System.Web</AssemblyName><AssemblyVersion>2.0.0.0</AssemblyVersion></AssemblyInfo><Base><BaseTypeName>System.Web.UI.WebControls.SqlDataSourceCommandEventArgs</BaseTypeName></Base><Interfaces /><Docs><since version=".NET 2.0" /><remarks><attribution license="cc4" from="Microsoft" modified="false" /><para>By adding an event handler delegate to handle the <see cref="E:System.Web.UI.WebControls.SqlDataSource.Selecting" /> event, you can perform any additional preprocessing required or cancel the database query entirely. Because the <see cref="T:System.Web.UI.WebControls.SqlDataSourceSelectingEventArgs" /> class is derived from the <see cref="T:System.Web.UI.WebControls.SqlDataSourceCommandEventArgs" /> class, you can cancel a pending <see cref="T:System.Web.UI.WebControls.SqlDataSource" /> database query by setting the <see cref="P:System.ComponentModel.CancelEventArgs.Cancel" /> property to true. You can examine and manipulate the <see cref="P:System.Data.Common.DbCommand.CommandText" />, <see cref="P:System.Data.Common.DbCommand.Parameters" /> collection, and other database query properties prior to running the query by accessing the <see cref="T:System.Data.Common.DbCommand" /> object exposed by the <see cref="P:System.Web.UI.WebControls.SqlDataSourceCommandEventArgs.Command" /> property. You can also examine the <see cref="T:System.Web.UI.DataSourceSelectArguments" /> object that is passed to the <see cref="M:System.Web.UI.WebControls.SqlDataSource.Select(System.Web.UI.DataSourceSelectArguments)" /> method by accessing the <see cref="P:System.Web.UI.WebControls.SqlDataSourceSelectingEventArgs.Arguments" /> property.</para><para>The <see cref="T:System.Web.UI.WebControls.SqlDataSourceSelectingEventArgs" /> class is used in the <see cref="M:System.Web.UI.WebControls.SqlDataSourceView.OnSelecting(System.Web.UI.WebControls.SqlDataSourceSelectingEventArgs)" /> method to provide access to a <see cref="T:System.Web.UI.WebControls.SqlDataSource" /> database query before it is run. </para><para>The <see cref="T:System.Web.UI.WebControls.SqlDataSource" /> control exposes many events that you can handle to work with the underlying data objects during the course of a data operation. The following table lists the events and 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.SqlDataSource.Selecting" />.</para><para>Occurs before the data is retrieved.</para></term><description><para><see cref="T:System.Web.UI.WebControls.SqlDataSourceSelectingEventArgs" /></para></description><description><para><see cref="T:System.Web.UI.WebControls.SqlDataSourceSelectingEventHandler" /></para></description></item><item><term><para><see cref="E:System.Web.UI.WebControls.SqlDataSource.Inserting" />, <see cref="E:System.Web.UI.WebControls.SqlDataSource.Updating" />, and <see cref="E:System.Web.UI.WebControls.SqlDataSource.Deleting" />.</para><para>Occur before an insert, update, or delete operation is performed.</para></term><description><para><see cref="T:System.Web.UI.WebControls.SqlDataSourceCommandEventArgs" /></para></description><description><para><see cref="T:System.Web.UI.WebControls.SqlDataSourceCommandEventHandler" /></para></description></item><item><term><para><see cref="E:System.Web.UI.WebControls.SqlDataSource.Selected" />, <see cref="E:System.Web.UI.WebControls.SqlDataSource.Inserted" />, <see cref="E:System.Web.UI.WebControls.SqlDataSource.Updated" />, and <see cref="E:System.Web.UI.WebControls.SqlDataSource.Deleted" />.</para><para>Occur after the data retrieval, insert, update, or delete operation completes.</para></term><description><para><see cref="T:System.Web.UI.WebControls.SqlDataSourceStatusEventArgs" /></para></description><description><para><see cref="T:System.Web.UI.WebControls.SqlDataSourceStatusEventHandler" /></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.SqlDataSource.Selecting" /> event of the <see cref="T:System.Web.UI.WebControls.SqlDataSource" /> control.</para></summary></Docs><Members><Member MemberName=".ctor"><MemberSignature Language="C#" Value="public SqlDataSourceSelectingEventArgs (System.Data.Common.DbCommand command, System.Web.UI.DataSourceSelectArguments argument);" /><MemberType>Constructor</MemberType><Parameters><Parameter Name="command" Type="System.Data.Common.DbCommand" /><Parameter Name="argument" Type="System.Web.UI.DataSourceSelectArguments" /></Parameters><Docs><param name="argument">To be added.</param><since version=".NET 2.0" /><remarks><attribution license="cc4" from="Microsoft" modified="false" /><para>The <paramref name="inputParameters" /> parameter is an <see cref="T:System.Collections.IDictionary" /> collection of name/value pairs that match those in the method signature and are passed by reference.</para></remarks><summary><attribution license="cc4" from="Microsoft" modified="false" /><para>Initializes a new instance of the <see cref="T:System.Web.UI.WebControls.SqlDataSourceSelectingEventArgs" /> class, using the specified <see cref="T:System.Data.Common.DbCommand" /> object and any <see cref="T:System.Web.UI.DataSourceSelectArguments" /> passed to the <see cref="M:System.Web.UI.WebControls.SqlDataSource.Select(System.Web.UI.DataSourceSelectArguments)" /> method.</para></summary><param name="command"><attribution license="cc4" from="Microsoft" modified="false" />An <see cref="T:System.Data.Common.DbCommand" /> object that represents the cancelable <see cref="M:System.Web.UI.WebControls.SqlDataSource.Select(System.Web.UI.DataSourceSelectArguments)" /> query.</param></Docs><AssemblyInfo><AssemblyVersion>2.0.0.0</AssemblyVersion></AssemblyInfo></Member><Member MemberName="Arguments"><MemberSignature Language="C#" Value="public System.Web.UI.DataSourceSelectArguments Arguments { get; }" /><MemberType>Property</MemberType><ReturnValue><ReturnType>System.Web.UI.DataSourceSelectArguments</ReturnType></ReturnValue><Docs><value>To be added.</value><since version=".NET 2.0" /><remarks><attribution license="cc4" from="Microsoft" modified="false" /><para>You can examine the <see cref="T:System.Web.UI.DataSourceSelectArguments" /> object to determine whether sorting, paging, or a row count are requested as part of the data retrieval operation. </para><para>Data-bound controls use the <see cref="T:System.Web.UI.DataSourceSelectArguments" /> class to request that the <see cref="T:System.Web.UI.WebControls.SqlDataSource" /> perform additional data-related operations on a result set, such as sorting the data or returning a specific subset of data. These data-related operations are enumerated by the <see cref="T:System.Web.UI.DataSourceCapabilities" /> enumeration. For more information, see <see cref="T:System.Web.UI.DataSourceSelectArguments" />. </para></remarks><summary><attribution license="cc4" from="Microsoft" modified="false" /><para>Gets the <see cref="T:System.Web.UI.DataSourceSelectArguments" /> object passed to the <see cref="M:System.Web.UI.WebControls.SqlDataSource.Select(System.Web.UI.DataSourceSelectArguments)" /> method.</para></summary></Docs><AssemblyInfo><AssemblyVersion>2.0.0.0</AssemblyVersion></AssemblyInfo></Member></Members></Type>