Share via


MediaDataServiceContext.AttachTo Method (String, Object)

Notifies the System.Data.Services.Client.DataServiceContext to start tracking the specified resource and supplies the location of the resource in the specified resource set.

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

Syntax

'Declaration
Public Sub AttachTo ( _
    entitySetName As String, _
    entity As Object _
)
'Usage
Dim instance As MediaDataServiceContext 
Dim entitySetName As String 
Dim entity As Object

instance.AttachTo(entitySetName, entity)
public void AttachTo(
    string entitySetName,
    Object entity
)
public:
virtual void AttachTo(
    String^ entitySetName, 
    Object^ entity
) sealed
abstract AttachTo : 
        entitySetName:string * 
        entity:Object -> unit  
override AttachTo : 
        entitySetName:string * 
        entity:Object -> unit
public final function AttachTo(
    entitySetName : String, 
    entity : Object
)

Parameters

  • entitySetName
    Type: System.String
    The string value that contains the name of the entity set to which to the entity is attached.

Implements

IMediaDataServiceContext.AttachTo(String, Object)

Remarks

It does not follow the object graph and attach related objects.

See Also

Reference

MediaDataServiceContext Class

AttachTo Overload

Microsoft.WindowsAzure.MediaServices.Client Namespace