다음을 통해 공유


DataServiceContext.LoadProperty<T> 메서드 (Object, String, DataServiceQueryContinuation<T>)

제공된 제네릭 쿼리 연속 개체를 사용하여 데이터 서비스에서 다음 관련 엔터티 페이지를 로드합니다.

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

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

구문

‘선언
Public Function LoadProperty(Of T) ( _
    entity As Object, _
    propertyName As String, _
    continuation As DataServiceQueryContinuation(Of T) _
) As QueryOperationResponse(Of T)
‘사용 방법
Dim instance As DataServiceContext
Dim entity As Object
Dim propertyName As String
Dim continuation As DataServiceQueryContinuation(Of T)
Dim returnValue As QueryOperationResponse(Of T)

returnValue = instance.LoadProperty(entity, _
    propertyName, continuation)
public QueryOperationResponse<T> LoadProperty<T>(
    Object entity,
    string propertyName,
    DataServiceQueryContinuation<T> continuation
)
public:
generic<typename T>
QueryOperationResponse<T>^ LoadProperty(
    Object^ entity, 
    String^ propertyName, 
    DataServiceQueryContinuation<T>^ continuation
)
member LoadProperty : 
        entity:Object * 
        propertyName:string * 
        continuation:DataServiceQueryContinuation<'T> -> QueryOperationResponse<'T> 
JScript는 제네릭 형식 및 메서드를 지원하지 않습니다.

유형 매개 변수

  • T
    로드할 컬렉션의 요소 형식입니다.

매개 변수

  • entity
    유형: System.Object
    로드할 속성을 포함하는 엔터티입니다.
  • propertyName
    유형: System.String
    로드할 지정된 엔터티의 속성 이름입니다.

반환 값

유형: System.Data.Services.Client.QueryOperationResponse<T>
쿼리 결과의 다음 관련 엔터티 데이터 페이지를 포함하는 응답입니다.

예외

예외 조건
InvalidOperationException

entity가 Detached 또는 Added 상태인 경우

주의

entity가 Unchanged 또는 Modified 상태이면 관련 엔터티가 Unchanged 상태의 개체로 로드되고 링크도 Unchanged 상태로 제공됩니다.

entity가 Deleted 상태이면 관련 엔터티가 Unchanged 상태의 개체로 로드되고 링크가 Deleted 상태로 제공됩니다.

참고 항목

참조

DataServiceContext 클래스

LoadProperty 오버로드

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