DataServiceContext.EndLoadProperty Method

Microsoft Silverlight will reach end of support after October 2021. Learn more.

Called to complete the BeginLoadProperty operation.

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

Syntax

'Declaration
Public Function EndLoadProperty ( _
    asyncResult As IAsyncResult _
) As QueryOperationResponse
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.

Remarks

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.

Examples

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

Version Information

Silverlight

Supported in: 5, 4, 3

Platforms

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