DataServiceContext.BeginLoadProperty 方法 (Object, String, DataServiceQueryContinuation, AsyncCallback, Object)
透過使用提供的查詢接續物件,以非同步方式從資料服務載入下一頁相關實體。
命名空間: System.Data.Services.Client
組件: Microsoft.Data.Services.Client (在 Microsoft.Data.Services.Client.dll 中)
語法
'宣告
Public Function BeginLoadProperty ( _
entity As Object, _
propertyName As String, _
continuation As DataServiceQueryContinuation, _
callback As AsyncCallback, _
state As Object _
) As IAsyncResult
'用途
Dim instance As DataServiceContext
Dim entity As Object
Dim propertyName As String
Dim continuation As DataServiceQueryContinuation
Dim callback As AsyncCallback
Dim state As Object
Dim returnValue As IAsyncResult
returnValue = instance.BeginLoadProperty(entity, _
propertyName, continuation, callback, _
state)
public IAsyncResult BeginLoadProperty(
Object entity,
string propertyName,
DataServiceQueryContinuation continuation,
AsyncCallback callback,
Object state
)
public:
IAsyncResult^ BeginLoadProperty(
Object^ entity,
String^ propertyName,
DataServiceQueryContinuation^ continuation,
AsyncCallback^ callback,
Object^ state
)
member BeginLoadProperty :
entity:Object *
propertyName:string *
continuation:DataServiceQueryContinuation *
callback:AsyncCallback *
state:Object -> IAsyncResult
public function BeginLoadProperty(
entity : Object,
propertyName : String,
continuation : DataServiceQueryContinuation,
callback : AsyncCallback,
state : Object
) : IAsyncResult
參數
- entity
型別:System.Object
包含要載入之屬性的實體。
- propertyName
型別:System.String
要載入的指定之實體的屬性名稱。
- continuation
型別:System.Data.Services.Client.DataServiceQueryContinuation
DataServiceQueryContinuation<T> 物件,表示從資料服務傳回的下一頁相關實體資料。
- callback
型別:System.AsyncCallback
有結果可供用戶端使用時要叫用的方法。
- state
型別:System.Object
傳遞至回呼的使用者定義狀態物件。
傳回值
型別:System.IAsyncResult
IAsyncResult ,表示作業的狀態。
備註
提供的 DataServiceQueryContinuation<T> 物件包含 URI,在執行時會在查詢結果中傳回下一頁資料。