Export (0) Print
Expand All

DataServiceContext.BeginLoadProperty Method (Object, String, DataServiceQueryContinuation, AsyncCallback, Object)

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

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

public IAsyncResult BeginLoadProperty(
	Object entity,
	string propertyName,
	DataServiceQueryContinuation continuation,
	AsyncCallback callback,
	Object state
)

Parameters

entity
Type: System.Object
The entity that contains the property to load.
propertyName
Type: System.String
The name of the property of the specified entity to load.
continuation
Type: System.Data.Services.Client.DataServiceQueryContinuation
The DataServiceQueryContinuation object that contains the URI used to load the next results page.
callback
Type: System.AsyncCallback
The delegate to invoke when results are available for client consumption.
state
Type: System.Object
The user-defined state object that is passed to the callback.

Return Value

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

When entity is in an Unchanged or Modified state, the related entities are loaded in the Unchanged state, and the links between the entities are also created in an Unchanged state.

When entity is in a Deleted state, the related entities are loaded in the Unchanged state, and the links between the entities are created in the Deleted state.

Silverlight

Supported in: 5, 4

For a list of the operating systems and browsers that are supported by Silverlight, see Supported Operating Systems and Browsers.

Community Additions

ADD
Show:
© 2014 Microsoft