Share via


MediaDataServiceContext.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
Public Sub AddObject ( _
    entitySetName As String, _
    entity As Object _
)
'Usage
Dim instance As MediaDataServiceContext 
Dim entitySetName As String 
Dim entity As Object

instance.AddObject(entitySetName, entity)
public void AddObject(
    string entitySetName,
    Object entity
)
public:
virtual void AddObject(
    String^ entitySetName, 
    Object^ entity
) sealed
abstract AddObject : 
        entitySetName:string * 
        entity:Object -> unit  
override AddObject : 
        entitySetName:string * 
        entity:Object -> unit
public final 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.

Implements

IMediaDataServiceContext.AddObject(String, Object)

See Also

Reference

MediaDataServiceContext Class

Microsoft.WindowsAzure.MediaServices.Client Namespace