IMediaDataServiceContext.AddObject Method

Adds the specified object to the set of objects that the System.Data.Services.Client.DataServiceContext is tracking.

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

Syntax

'Declaration
Sub AddObject ( _
    entitySetName As String, _
    entity As Object _
)
'Usage
Dim instance As IMediaDataServiceContext 
Dim entitySetName As String 
Dim entity As Object

instance.AddObject(entitySetName, entity)
void AddObject(
    string entitySetName,
    Object entity
)
void AddObject(
    String^ entitySetName, 
    Object^ entity
)
abstract AddObject : 
        entitySetName:string * 
        entity:Object -> unit
function AddObject(
    entitySetName : String, 
    entity : Object
)

Parameters

  • entitySetName
    Type: System.String
    The name of the entity set to which the resource will be added. Any leading or trailing forward slashes will automatically be trimmed from entitySetName.
  • entity
    Type: System.Object
    The object to be tracked by the System.Data.Services.Client.DataServiceContext.

See Also

Reference

IMediaDataServiceContext Interface

Microsoft.WindowsAzure.MediaServices.Client Namespace