Export (0) Print
Expand All

DataServiceContext.LoadProperty Method (Object, String, Uri)

Loads a page of related entities by using the supplied next link URI.

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

public QueryOperationResponse LoadProperty(
	Object entity,
	string propertyName,
	Uri nextLinkUri
)

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 that is used to load the next results page.

Return Value

Type: System.Data.Services.Client.QueryOperationResponse
An instance of QueryOperationResponse<T> that contains the results of the request.

ExceptionCondition
InvalidOperationException

When entity is in a Detached or Added state.

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.

Show:
© 2014 Microsoft