SqlDataSourceView.Select(DataSourceSelectArguments) 메서드

정의

SelectCommand SQL 문자열과 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

데이터 행의 IEnumerable 목록입니다.

예외

Select(DataSourceSelectArguments) 메서드에 전달된 selectArgs는 검색된 데이터를 페이징 또는 정렬할 수 있도록 데이터 검색 중에 데이터 소스가 일부 추가 작업을 수행해야 하지만 데이터 소스 컨트롤이 필요한 기능을 지원하지 않음을 나타내는 경우

SqlDataSource가 내부 데이터 소스와 연결될 수 없는 경우

설명

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

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

적용 대상

추가 정보