Share via


EntitySetController<TEntity, TKey>.DeleteLink Method (TKey, String, Uri)

This method should be overridden to handle DELETE requests that attempt to break a relationship between two entities.

Namespace:  System.Web.Http.OData
Assembly:  System.Web.Http.OData (in System.Web.Http.OData.dll)

Syntax

'Declaration
Public Overridable Sub DeleteLink ( _
    key As TKey, _
    navigationProperty As String, _
    link As Uri _
)
'Usage
Dim instance As EntitySetController 
Dim key As TKey
Dim navigationProperty As String 
Dim link As Uri

instance.DeleteLink(key, navigationProperty, _
    link)
public virtual void DeleteLink(
    TKey key,
    string navigationProperty,
    Uri link
)
public:
virtual void DeleteLink(
    TKey key, 
    String^ navigationProperty, 
    Uri^ link
)
abstract DeleteLink : 
        key:'TKey * 
        navigationProperty:string * 
        link:Uri -> unit  
override DeleteLink : 
        key:'TKey * 
        navigationProperty:string * 
        link:Uri -> unit
public function DeleteLink(
    key : TKey, 
    navigationProperty : String, 
    link : Uri
)

Parameters

  • key
    Type: TKey
    The key of the entity with the navigation property.
  • navigationProperty
    Type: System.String
    The name of the navigation property.
  • link
    Type: System.Uri
    The URI of the entity to remove from the navigation property.

See Also

Reference

EntitySetController<TEntity, TKey> Class

DeleteLink Overload

System.Web.Http.OData Namespace