Share via


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。
  • state
    类型:System.Object
    已传递到回调的用户定义的状态对象。

返回值

类型:System.IAsyncResult
用于跟踪异步操作状态的 IAsyncResult 对象。

注释

当 entity 处于 UnchangedModified 状态时,在 Unchanged 状态下加载相关实体,并且也在 Unchanged 状态下创建各实体之间的链接。

当 entity 处于 Deleted 状态时,在 Unchanged 状态下加载相关实体,并在 Deleted 状态下创建各实体之间的链接。

请参阅

参考

DataServiceContext 类

BeginLoadProperty 重载

System.Data.Services.Client 命名空间