Export (0) Print
Expand All

DataServiceContext.LoadProperty Method (Object, String)

Loads deferred content for a specified property from the data service.

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

public QueryOperationResponse LoadProperty(
	Object entity,
	string propertyName
)

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 to the load operation.

Calling this method invokes a network operation to fetch the property value. The property specified may be any one of the properties on the entity, including properties that represent associations or links.

If the property represents an association, link or deferred property, calling this method provides the client a way to lazily load related resources.

If the entity is in the unchanged or modified state, the property value loads the related entities and marks them unchanged with unchanged links

If the property is already loaded, calling this method lets you refresh the value of the property.

Show:
© 2014 Microsoft