Metodo DataServiceContext.BeginLoadProperty (Object, String, Uri, AsyncCallback, Object)
Carica in modo asincrono una pagina di entità correlate dal servizio dati tramite l'URI del collegamento successivo fornito.
Spazio dei nomi System.Data.Services.Client
Assembly: Microsoft.Data.Services.Client (in Microsoft.Data.Services.Client.dll)
Sintassi
'Dichiarazione
Public Function BeginLoadProperty ( _
entity As Object, _
propertyName As String, _
nextLinkUri As Uri, _
callback As AsyncCallback, _
state As Object _
) As IAsyncResult
'Utilizzo
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
Parametri
- entity
Tipo: System.Object
Entità contenente la proprietà da caricare.
- propertyName
Tipo: System.String
Nome della proprietà dell'entità specificata da caricare.
- nextLinkUri
Tipo: System.Uri
URI utilizzato per caricare la pagina di risultati successiva.
- callback
Tipo: System.AsyncCallback
Delegato da richiamare se sono disponibili risultati per l'utilizzo client.
- state
Tipo: System.Object
Oggetto stato definito dall'utente passato al callback.
Valore restituito
Tipo: System.IAsyncResult
Oggetto IAsyncResult utilizzato per rilevare lo stato dell'operazione asincrona.
Osservazioni
Se entity è in uno stato Unchanged o Modified, le entità correlate vengono caricate in uno stato Unchanged e anche i collegamenti tra le entità vengono creati in uno stato Unchanged.
Se entity è in uno stato Deleted, le entità correlate vengono caricate in uno stato Unchanged e anche i collegamenti tra le entità vengono creati in uno stato Deleted.