Share via


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
    要加载的指定实体的属性名称。
  • state
    类型:System.Object
    已传递到回调的用户定义的状态对象。

返回值

类型:System.IAsyncResult
表示操作状态的 IAsyncResult

注释

所提供的 DataServiceQueryContinuation<T> 对象所包含的 URI 在执行时会返回查询结果中的下一页数据。

请参阅

参考

DataServiceContext 类

BeginLoadProperty 重载

System.Data.Services.Client 命名空间