DataServiceContext.LoadProperty<T> Method (Object, String, DataServiceQueryContinuation<T>)
Loads the next page of related entities from the data service by using the supplied generic 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(Of T) ( _
entity As Object, _
propertyName As String, _
continuation As DataServiceQueryContinuation(Of T) _
) As QueryOperationResponse(Of T)
'Usage
Dim instance As DataServiceContext
Dim entity As Object
Dim propertyName As String
Dim continuation As DataServiceQueryContinuation(Of T)
Dim returnValue As QueryOperationResponse(Of T)
returnValue = instance.LoadProperty(entity, _
propertyName, continuation)
public QueryOperationResponse<T> LoadProperty<T>(
Object entity,
string propertyName,
DataServiceQueryContinuation<T> continuation
)
public:
generic<typename T>
QueryOperationResponse<T>^ LoadProperty(
Object^ entity,
String^ propertyName,
DataServiceQueryContinuation<T>^ continuation
)
member LoadProperty :
entity:Object *
propertyName:string *
continuation:DataServiceQueryContinuation<'T> -> QueryOperationResponse<'T>
JScript does not support generic types and methods.
Type Parameters
- T
Element type of collection to load.
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.
- continuation
Type: System.Data.Services.Client.DataServiceQueryContinuation<T>
A DataServiceQueryContinuation<T> object that represents the next page of related entities to load from the data service.
Return Value
Type: System.Data.Services.Client.QueryOperationResponse<T>
The response that contains the next page of related entity data.
Exceptions
Exception | Condition |
---|---|
InvalidOperationException |
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.