DataServiceContext.BeginLoadProperty Method

Definition

Overloads

BeginLoadProperty(Object, String, AsyncCallback, Object)

Asynchronously loads the value of the specified property from the data service.

BeginLoadProperty(Object, String, DataServiceQueryContinuation, AsyncCallback, Object)

Asynchronously loads the next page of related entities from the data service by using the supplied query continuation object.

BeginLoadProperty(Object, String, Uri, AsyncCallback, Object)

Asynchronously loads a page of related entities from the data service by using the supplied next link URI.

BeginLoadProperty(Object, String, AsyncCallback, Object)

Asynchronously loads the value of the specified property from the data service.

public virtual IAsyncResult BeginLoadProperty (object entity, string propertyName, AsyncCallback callback, object state);
abstract member BeginLoadProperty : obj * string * AsyncCallback * obj -> IAsyncResult
override this.BeginLoadProperty : obj * string * AsyncCallback * obj -> IAsyncResult
Public Overridable Function BeginLoadProperty (entity As Object, propertyName As String, callback As AsyncCallback, state As Object) As IAsyncResult

Parameters

entity
Object

The entity that contains the property to load.

propertyName
String

The name of the property on the specified entity to load.

callback
AsyncCallback

The delegate called when a response to the request is received.

state
Object

The user-defined state object that is used to pass context data to the callback method.

Returns

An IAsyncResult that represents the status of the asynchronous operation.

Remarks

actually doesn't modify the property until EndLoadProperty is called.

Applies to

BeginLoadProperty(Object, String, DataServiceQueryContinuation, AsyncCallback, Object)

Asynchronously loads the next page of related entities from the data service by using the supplied query continuation object.

public virtual IAsyncResult BeginLoadProperty (object entity, string propertyName, Microsoft.OData.Client.DataServiceQueryContinuation continuation, AsyncCallback callback, object state);
abstract member BeginLoadProperty : obj * string * Microsoft.OData.Client.DataServiceQueryContinuation * AsyncCallback * obj -> IAsyncResult
override this.BeginLoadProperty : obj * string * Microsoft.OData.Client.DataServiceQueryContinuation * AsyncCallback * obj -> IAsyncResult
Public Overridable Function BeginLoadProperty (entity As Object, propertyName As String, continuation As DataServiceQueryContinuation, callback As AsyncCallback, state As Object) As IAsyncResult

Parameters

entity
Object

The entity that contains the property to load.

propertyName
String

The name of the property of the specified entity to load.

continuation
DataServiceQueryContinuation

A DataServiceQueryContinuation<T> object that represents the next page of related entity data to return from the data service.

callback
AsyncCallback

Delegate to invoke when results are available for client consumption.

state
Object

User-defined state object passed to the callback.

Returns

An IAsyncResult that represents the status of the operation.

Applies to

BeginLoadProperty(Object, String, Uri, AsyncCallback, Object)

Asynchronously loads a page of related entities from the data service by using the supplied next link URI.

public virtual IAsyncResult BeginLoadProperty (object entity, string propertyName, Uri nextLinkUri, AsyncCallback callback, object state);
abstract member BeginLoadProperty : obj * string * Uri * AsyncCallback * obj -> IAsyncResult
override this.BeginLoadProperty : obj * string * Uri * AsyncCallback * obj -> IAsyncResult
Public Overridable Function BeginLoadProperty (entity As Object, propertyName As String, nextLinkUri As Uri, callback As AsyncCallback, state As Object) As IAsyncResult

Parameters

entity
Object

The entity that contains the property to load.

propertyName
String

The name of the property of the specified entity to load.

nextLinkUri
Uri

The URI used to load the next results page.

callback
AsyncCallback

Delegate to invoke when results are available for client consumption.

state
Object

User-defined state object passed to the callback.

Returns

An IAsyncResult object that is used to track the status of the asynchronous operation.

Applies to