Freigeben über


DataServiceContext.BeginLoadProperty-Methode (Object, String, Uri, AsyncCallback, Object)

Lädt asynchron mit dem angegebenen nächsten Link-URI eine Seite der verknüpften Entitäten vom Datendienst.

Namespace:  System.Data.Services.Client
Assembly:  Microsoft.Data.Services.Client (in Microsoft.Data.Services.Client.dll)

Syntax

'Declaration
Public Function BeginLoadProperty ( _
    entity As Object, _
    propertyName As String, _
    nextLinkUri As Uri, _
    callback As AsyncCallback, _
    state As Object _
) As IAsyncResult
'Usage
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

Parameter

  • entity
    Typ: System.Object
    Die Entität, die die zu ladende Eigenschaft enthält.
  • propertyName
    Typ: System.String
    Der Name der Eigenschaft in der zu ladenden Entität.
  • nextLinkUri
    Typ: System.Uri
    Der URI, der verwendet wurde, um die nächste Ergebnisse-Seite zu laden.
  • callback
    Typ: System.AsyncCallback
    Aufruf-Delegierter, wenn Ergebnisse für Clientverbrauch verfügbar sind.
  • state
    Typ: System.Object
    Benutzerdefiniertes Statusobjekt, das an den Rückruf übergeben wird.

Rückgabewert

Typ: System.IAsyncResult
Ein IAsyncResult-Objekt, das verwendet wird, um den Status vom asynchronen Vorgang nachzuverfolgen.

Hinweise

Wenn entity den Status Unchanged oder Modified aufweist werden die zugehörigen Entitäten im Status Unchanged geladen, und die Links zwischen den Entities werden auch im Zustand Unchanged erstellt.

Ist entity im Status Deleted werden die zugehörigen Entities mit dem Status Unchanged geladen, und die Links zwischen den Entities werden im Zustand Deleted erstellt.

Siehe auch

Verweis

DataServiceContext Klasse

BeginLoadProperty-Überladung

System.Data.Services.Client-Namespace