Export (0) Print
Expand All

DataServiceContext.EndLoadProperty Method

Called to complete the BeginLoadProperty operation.

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

public QueryOperationResponse EndLoadProperty(
	IAsyncResult asyncResult
)

Parameters

asyncResult
Type: System.IAsyncResult
An IAsyncResult that represents the status of the asynchronous operation.

Return Value

Type: System.Data.Services.Client.QueryOperationResponse
The response to the query.

If an error occurs during the request or while processing the response from the data service, an exception is thrown.

You must use the BeginInvoke method of the Dispatcher class to correctly marshal the response operation back to the main application thread (the UI thread) of your Silverlight-based application. For more information, see Synchronizing Data for Multithreading.

For an example that uses the EndLoadProperty method, see Loading Related Entities (WCF Data Services/Silverlight).

Silverlight

Supported in: 5, 4, 3

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