Share via


AsyncEntitySetController<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 Function DeleteLink ( _
    key As TKey, _
    navigationProperty As String, _
    link As Uri _
) As Task
'Usage
Dim instance As AsyncEntitySetController 
Dim key As TKey
Dim navigationProperty As String 
Dim link As Uri 
Dim returnValue As Task 

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

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.

Return Value

Type: System.Threading.Tasks.Task
Returns Task.

See Also

Reference

AsyncEntitySetController<TEntity, TKey> Class

DeleteLink Overload

System.Web.Http.OData Namespace