다음을 통해 공유


SqlDataSourceView.Select(DataSourceSelectArguments) 메서드

정의

SQL 문자열 및 컬렉션에 있는 매개 변수를 SelectCommand 사용하여 기본 데이터베이스에서 SelectParameters 데이터를 검색합니다.

public:
 System::Collections::IEnumerable ^ Select(System::Web::UI::DataSourceSelectArguments ^ arguments);
public System.Collections.IEnumerable Select(System.Web.UI.DataSourceSelectArguments arguments);
override this.Select : System.Web.UI.DataSourceSelectArguments -> System.Collections.IEnumerable
Public Function Select (arguments As DataSourceSelectArguments) As IEnumerable

매개 변수

arguments
DataSourceSelectArguments

DataSourceSelectArguments 기본 데이터 검색 이외의 데이터에 대한 작업을 요청하는 데 사용됩니다.

반품

IEnumerable 데이터 행 목록입니다.

예외

selectArgs 메서드에 Select(DataSourceSelectArguments) 전달된 데이터 원본은 검색된 데이터를 페이징하거나 정렬할 수 있도록 데이터를 검색하는 동안 일부 추가 작업을 수행하도록 지정하지만 데이터 원본 제어는 요청된 기능을 지원하지 않습니다.

SqlDataSource 기본 데이터 원본과의 연결을 설정할 수 없습니다.

설명

메서드는 Select 메서드를 ExecuteSelect 호출하여 매개 변수를 전달합니다 selectArgs .

ExecuteSelect 속성이 값으로 DataView 설정되거나 속성이 값으로 DataSet 설정된 경우 DataSourceMode 개체를 IDataReader 반환하는 경우 DataSourceMode 메서드는 개체를 DataReader 반환합니다. 데이터 읽기를 IDataReader 마쳤으면 개체를 닫습니다.

적용 대상

추가 정보