SqlDataSourceSelectingEventArgs 클래스

정의

Selecting 컨트롤의 SqlDataSource 이벤트에 대한 데이터를 제공합니다.

public ref class SqlDataSourceSelectingEventArgs : System::Web::UI::WebControls::SqlDataSourceCommandEventArgs
public class SqlDataSourceSelectingEventArgs : System.Web.UI.WebControls.SqlDataSourceCommandEventArgs
type SqlDataSourceSelectingEventArgs = class
    inherit SqlDataSourceCommandEventArgs
Public Class SqlDataSourceSelectingEventArgs
Inherits SqlDataSourceCommandEventArgs
상속

설명

처리 하는 이벤트 처리기 대리자를 추가 하 여는 Selecting 이벤트는 데이터베이스 쿼리를 완전히 취소 또는 필요한 추가적인 전처리를 수행할 수 있습니다. 때문에 SqlDataSourceSelectingEventArgs 에서 파생 된 클래스를 SqlDataSourceCommandEventArgs 클래스를 취소할 수 있습니다를 보류 중인 SqlDataSource 설정 하 여 데이터베이스 쿼리를 Cancel 속성을 true입니다. 검토 하 고 조작할 수는 CommandText, Parameters 컬렉션 및 기타 데이터베이스 쿼리 속성에 액세스 하 여 쿼리를 실행 하기 전에 DbCommand 에서 노출 된 개체는 Command 속성입니다. 검사할 수도 있습니다는 DataSourceSelectArguments 에 전달 되는 개체를 Select 에 액세스 하 여 메서드를 Arguments 속성입니다.

SqlDataSourceSelectingEventArgs 클래스를 사용 합니다 OnSelecting 에 대 한 액세스를 제공 하는 방법을 SqlDataSource 데이터베이스 쿼리를 실행 하기 전에.

SqlDataSource 컨트롤 데이터 작업을 사용 하는 동안 기본 데이터 개체를 사용 하 여 작업을 처리할 수 있는 많은 이벤트를 노출 합니다. 다음 표에서 이벤트를 나열 하 고 연결 된 EventArgs 클래스 및 이벤트 처리기 대리자입니다.

이벤트 EventArgs 이벤트 처리기
Selecting.

데이터를 검색 하기 전에 발생 합니다.
SqlDataSourceSelectingEventArgs SqlDataSourceSelectingEventHandler
Inserting, UpdatingDeleting.

삽입, 업데이트 또는 삭제 작업을 수행 하기 전에 발생 합니다.
SqlDataSourceCommandEventArgs SqlDataSourceCommandEventHandler
Selected, Inserted, UpdatedDeleted.

데이터 검색, 삽입, 업데이트 또는 삭제 작업이 완료 된 후 발생 합니다.
SqlDataSourceStatusEventArgs SqlDataSourceStatusEventHandler

생성자

SqlDataSourceSelectingEventArgs(DbCommand, DataSourceSelectArguments)

지정된 SqlDataSourceSelectingEventArgs 개체와 DbCommand 메서드에 전달된 모든 DataSourceSelectArguments를 사용하여 Select(DataSourceSelectArguments) 클래스의 새 인스턴스를 초기화합니다.

속성

Arguments

DataSourceSelectArguments 메서드에 전달된 Select(DataSourceSelectArguments) 개체를 가져옵니다.

Cancel

이벤트를 취소해야 할지 여부를 나타내는 값을 가져오거나 설정합니다.

(다음에서 상속됨 CancelEventArgs)
Command

보류 중인 데이터베이스 명령을 가져옵니다.

(다음에서 상속됨 SqlDataSourceCommandEventArgs)

메서드

Equals(Object)

지정된 개체가 현재 개체와 같은지 확인합니다.

(다음에서 상속됨 Object)
GetHashCode()

기본 해시 함수로 작동합니다.

(다음에서 상속됨 Object)
GetType()

현재 인스턴스의 Type을 가져옵니다.

(다음에서 상속됨 Object)
MemberwiseClone()

현재 Object의 단순 복사본을 만듭니다.

(다음에서 상속됨 Object)
ToString()

현재 개체를 나타내는 문자열을 반환합니다.

(다음에서 상속됨 Object)

적용 대상

추가 정보