Partager via


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

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

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)

Syntax

'Declaration
Public Function BeginLoadProperty ( _
    entity As Object, _
    propertyName As String, _
    nextLinkUri As Uri, _
    callback As AsyncCallback, _
    state As Object _
) As IAsyncResult
public IAsyncResult BeginLoadProperty(
    Object entity,
    string propertyName,
    Uri nextLinkUri,
    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.
  • nextLinkUri
    Type: System.Uri
    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.

Remarks

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.

Version Information

Silverlight

Supported in: 5, 4

Platforms

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