MediaDataServiceContext.DeleteLink Method
Changes the state of the link to deleted in the list of links being tracked by the System.Data.Services.Client.DataServiceContext.
Namespace: Microsoft.WindowsAzure.MediaServices.Client
Assembly: Microsoft.WindowsAzure.MediaServices.Client (in Microsoft.WindowsAzure.MediaServices.Client.dll)
Syntax
'Declaration
Public Sub DeleteLink ( _
source As Object, _
sourceProperty As String, _
target As Object _
)
'Usage
Dim instance As MediaDataServiceContext
Dim source As Object
Dim sourceProperty As String
Dim target As Object
instance.DeleteLink(source, sourceProperty, _
target)
public void DeleteLink(
Object source,
string sourceProperty,
Object target
)
public:
virtual void DeleteLink(
Object^ source,
String^ sourceProperty,
Object^ target
) sealed
abstract DeleteLink :
source:Object *
sourceProperty:string *
target:Object -> unit
override DeleteLink :
source:Object *
sourceProperty:string *
target:Object -> unit
public final function DeleteLink(
source : Object,
sourceProperty : String,
target : Object
)
Parameters
- source
Type: System.Object
The source object in the link to be marked for deletion.
- sourceProperty
Type: System.String
The name of the navigation property on the source object that is used to access the target object.
- target
Type: System.Object
The target object involved in the link that is bound to the source object. The target object must be of the type identified by the source property or a subtype.
Implements
IMediaDataServiceContext.DeleteLink(Object, String, Object)
Remarks
Notifies the context that a link exists between the source and target object and that the link is represented via the source.sourceProperty which is a collection. The context adds this link to the set of deleted links to be sent to the data service on the next call to SaveChanges(). If the specified link exists in the "Added" state, then the link is detached (see DetachLink method) instead.