DataServiceContext.LoadProperty Method (Object, String, DataServiceQueryContinuation)

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

Not supported by the WCF Data Services 5.0 client for Silverlight.

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

Syntax

'Declaration
Public Function LoadProperty ( _
    entity As Object, _
    propertyName As String, _
    continuation As DataServiceQueryContinuation _
) As QueryOperationResponse
'Usage
Dim instance As DataServiceContext 
Dim entity As Object 
Dim propertyName As String 
Dim continuation As DataServiceQueryContinuation 
Dim returnValue As QueryOperationResponse 

returnValue = instance.LoadProperty(entity, _
    propertyName, continuation)
public QueryOperationResponse LoadProperty(
    Object entity,
    string propertyName,
    DataServiceQueryContinuation continuation
)
public:
QueryOperationResponse^ LoadProperty(
    Object^ entity, 
    String^ propertyName, 
    DataServiceQueryContinuation^ continuation
)
member LoadProperty : 
        entity:Object * 
        propertyName:string * 
        continuation:DataServiceQueryContinuation -> QueryOperationResponse
public function LoadProperty(
    entity : Object, 
    propertyName : String, 
    continuation : DataServiceQueryContinuation
) : QueryOperationResponse

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.

Return Value

Type: System.Data.Services.Client.QueryOperationResponse
The response that contains the next page of related entity data.

Exceptions

Exception Condition
InvalidOperationException

When entity is in the Detached or Added state.

Remarks

When entity is in an Unchanged or Modified state, the related entities are loaded as objects in an Unchanged state, with links also in Unchanged state.

When entity is in a Deleted state, the related entities are loaded as objects in an Unchanged state, with links that are in the Deleted state.

See Also

Reference

DataServiceContext Class

LoadProperty Overload

System.Data.Services.Client Namespace