Share via


IMediaDataServiceContext.SetLink Method

Notifies the System.Data.Services.Client.DataServiceContext that a new link exists between the objects specified and that the link is represented by the property specified by the sourceProperty parameter.

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

Syntax

'Declaration
Sub SetLink ( _
    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.SetLink(source, sourceProperty, _
    target)
void SetLink(
    Object source,
    string sourceProperty,
    Object target
)
void SetLink(
    Object^ source, 
    String^ sourceProperty, 
    Object^ target
)
abstract SetLink : 
        source:Object * 
        sourceProperty:string * 
        target:Object -> unit
function SetLink(
    source : Object, 
    sourceProperty : String, 
    target : Object
)

Parameters

  • sourceProperty
    Type: System.String
    The property on the source object that identifies the target object of the new link.
  • target
    Type: System.Object
    The child object involved in the new link that is to be initialized by calling this method. The target object must be a subtype of the type identified by the sourceProperty parameter. If target is set to null, the call represents a delete link operation.

See Also

Reference

IMediaDataServiceContext Interface

Microsoft.WindowsAzure.MediaServices.Client Namespace