다음을 통해 공유


DataServiceQuery.Execute 메서드

데이터 서비스에 대해 쿼리를 실행합니다.

Silverlight용 WCF Data Services 5.0 클라이언트에서 지원되지 않습니다.

네임스페이스:  System.Data.Services.Client
어셈블리:  Microsoft.Data.Services.Client(Microsoft.Data.Services.Client.dll)

구문

‘선언
Public Function Execute As IEnumerable
‘사용 방법
Dim instance As DataServiceQuery
Dim returnValue As IEnumerable

returnValue = instance.Execute()
public IEnumerable Execute()
public:
IEnumerable^ Execute()
member Execute : unit -> IEnumerable 
public function Execute() : IEnumerable

반환 값

유형: System.Collections.IEnumerable
쿼리 작업의 결과를 포함하는 IEnumerable<T>입니다.

예외

예외 조건
DataServiceQueryException

데이터 서비스에서 HTTP 404: 리소스를 찾을 수 없음 오류가 반환되는 경우

주의

Execute 메서드는 지정된 데이터 서비스 쿼리를 실행하는 데 사용됩니다.

Execute 메서드는 데이터 서비스에 대해 설정된 HTTP GET 요청을 생성합니다.

참고 항목

참조

DataServiceQuery 클래스

System.Data.Services.Client 네임스페이스