次の方法で共有


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 状態で作成されます。

関連項目

参照

DataServiceContext クラス

BeginLoadProperty オーバーロード

System.Data.Services.Client 名前空間