IMediaDataServiceContext.AddRelatedObject Method

Adds a related object to the context and creates the link that defines the relationship between the two objects in a single request.

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

Syntax

'Declaration
Sub AddRelatedObject ( _
    source As Object, _
    sourceProperty As String, _
    target As Object _
)
'Usage
Dim instance As IMediaDataServiceContext 
Dim source As Object 
Dim sourceProperty As String 
Dim target As Object

instance.AddRelatedObject(source, sourceProperty, _
    target)
void AddRelatedObject(
    Object source,
    string sourceProperty,
    Object target
)
void AddRelatedObject(
    Object^ source, 
    String^ sourceProperty, 
    Object^ target
)
abstract AddRelatedObject : 
        source:Object * 
        sourceProperty:string * 
        target:Object -> unit
function AddRelatedObject(
    source : Object, 
    sourceProperty : String, 
    target : Object
)

Parameters

  • source
    Type: System.Object
    The parent object that is being tracked by the context.
  • sourceProperty
    Type: System.String
    The name of the navigation property that returns the related object based on an association between the two entities.
  • target
    Type: System.Object
    The related object that is being added.

See Also

Reference

IMediaDataServiceContext Interface

Microsoft.WindowsAzure.MediaServices.Client Namespace