Udostępnij za pośrednictwem


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

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

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

Syntax

'Declaration
Public Function BeginLoadProperty ( _
    entity As Object, _
    propertyName As String, _
    continuation As DataServiceQueryContinuation, _
    callback As AsyncCallback, _
    state As Object _
) As IAsyncResult
'Usage
Dim instance As DataServiceContext 
Dim entity As Object 
Dim propertyName As String 
Dim continuation As DataServiceQueryContinuation 
Dim callback As AsyncCallback 
Dim state As Object 
Dim returnValue As IAsyncResult 

returnValue = instance.BeginLoadProperty(entity, _
    propertyName, continuation, callback, _
    state)
public IAsyncResult BeginLoadProperty(
    Object entity,
    string propertyName,
    DataServiceQueryContinuation continuation,
    AsyncCallback callback,
    Object state
)
public:
IAsyncResult^ BeginLoadProperty(
    Object^ entity, 
    String^ propertyName, 
    DataServiceQueryContinuation^ continuation, 
    AsyncCallback^ callback, 
    Object^ state
)
member BeginLoadProperty : 
        entity:Object * 
        propertyName:string * 
        continuation:DataServiceQueryContinuation * 
        callback:AsyncCallback * 
        state:Object -> IAsyncResult
public function BeginLoadProperty(
    entity : Object, 
    propertyName : String, 
    continuation : DataServiceQueryContinuation, 
    callback : AsyncCallback, 
    state : Object
) : IAsyncResult

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.
  • callback
    Type: System.AsyncCallback
    Delegate to invoke when results are available for client consumption.
  • state
    Type: System.Object
    User-defined state object passed to the callback.

Return Value

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

Remarks

The supplied DataServiceQueryContinuation<T> object contains the URI that, when executed, returns the next page of data in the query result.

See Also

Reference

DataServiceContext Class

BeginLoadProperty Overload

System.Data.Services.Client Namespace