Share via


MediaDataServiceContext.LoadProperty Method

Loads deferred content for a specified property from the data service. Not supported by the WCF Data Services 5.0 client for Silverlight.

Namespace:  Microsoft.WindowsAzure.MediaServices.Client
Assembly:  Microsoft.WindowsAzure.MediaServices.Client (in Microsoft.WindowsAzure.MediaServices.Client.dll)

Syntax

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

returnValue = instance.LoadProperty(entity, _
    propertyName)
public QueryOperationResponse LoadProperty(
    Object entity,
    string propertyName
)
public:
virtual QueryOperationResponse^ LoadProperty(
    Object^ entity, 
    String^ propertyName
) sealed
abstract LoadProperty : 
        entity:Object * 
        propertyName:string -> QueryOperationResponse  
override LoadProperty : 
        entity:Object * 
        propertyName:string -> QueryOperationResponse
public final function LoadProperty(
    entity : Object, 
    propertyName : String
) : QueryOperationResponse

Parameters

  • entity
    Type: System.Object
    The entity that contains the property to load.

Return Value

Type: System.Data.Services.Client.QueryOperationResponse
Returns QueryOperationResponse.

Implements

IMediaDataServiceContext.LoadProperty(Object, String)

Remarks

If entity is in in detached or added state, this method will throw an InvalidOperationException since there is nothing it can load from the server. If entity is in unchanged or modified state, this method will load its collection or reference elements as unchanged with unchanged bindings. If entity is in deleted state, this method will load the entities linked to by its collection or reference property in the unchanged state with bindings in the deleted state.

See Also

Reference

MediaDataServiceContext Class

Microsoft.WindowsAzure.MediaServices.Client Namespace