DataServiceContext.BeginLoadProperty 메서드 (Object, String, Uri, AsyncCallback, Object)
제공된 다음 링크 URI를 사용하여 데이터 서비스에서 관련 엔터티 페이지를 비동기적으로 로드합니다.
네임스페이스: System.Data.Services.Client
어셈블리: Microsoft.Data.Services.Client(Microsoft.Data.Services.Client.dll)
구문
‘선언
Public Function BeginLoadProperty ( _
entity As Object, _
propertyName As String, _
nextLinkUri As Uri, _
callback As AsyncCallback, _
state As Object _
) As IAsyncResult
‘사용 방법
Dim instance As DataServiceContext
Dim entity As Object
Dim propertyName As String
Dim nextLinkUri As Uri
Dim callback As AsyncCallback
Dim state As Object
Dim returnValue As IAsyncResult
returnValue = instance.BeginLoadProperty(entity, _
propertyName, nextLinkUri, callback, _
state)
public IAsyncResult BeginLoadProperty(
Object entity,
string propertyName,
Uri nextLinkUri,
AsyncCallback callback,
Object state
)
public:
IAsyncResult^ BeginLoadProperty(
Object^ entity,
String^ propertyName,
Uri^ nextLinkUri,
AsyncCallback^ callback,
Object^ state
)
member BeginLoadProperty :
entity:Object *
propertyName:string *
nextLinkUri:Uri *
callback:AsyncCallback *
state:Object -> IAsyncResult
public function BeginLoadProperty(
entity : Object,
propertyName : String,
nextLinkUri : Uri,
callback : AsyncCallback,
state : Object
) : IAsyncResult
매개 변수
- entity
유형: System.Object
로드할 속성을 포함하는 엔터티입니다.
- propertyName
유형: System.String
로드할 지정된 엔터티의 속성 이름입니다.
- nextLinkUri
유형: System.Uri
다음 결과 페이지를 로드하는 데 사용되는 URI입니다.
- callback
유형: System.AsyncCallback
결과를 클라이언트 소비에 사용할 수 있는 경우에 호출할 대리자입니다.
- state
유형: System.Object
콜백에 전달된 사용자 정의 상태 개체입니다.
반환 값
유형: System.IAsyncResult
비동기 작업의 상태를 추적하는 데 사용되는 IAsyncResult 개체입니다.
주의
entity가 Unchanged 또는 Modified 상태이면 관련 엔터티가 Unchanged 상태로 로드되고 엔터티 간의 관계도 Unchanged 상태로 만들어집니다.
entity가 Deleted 상태이면 관련 엔터티가 Unchanged 상태로 로드되고 엔터티 간의 링크가 Deleted 상태로 만들어집니다.