Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Namespace:   System.Web.Http.OData
Assembly:  System.Web.Http.OData (in System.Web.Http.OData.dll)
Overload List
| Name | Description | |
|---|---|---|
| .jpeg) | DeleteLink(TKey, String, String) | This method should be overridden to handle DELETE requests that attempt to break a relationship between two entities. | 
| .jpeg) | DeleteLink(TKey, String, Uri) | This method should be overridden to handle DELETE requests that attempt to break a relationship between two entities. | 
See Also
AsyncEntitySetController<TEntity, TKey> Class
System.Web.Http.OData Namespace
Return to top
AsyncEntitySetController<TEntity, TKey>.DeleteLink Method (TKey, String, String)
This method should be overridden to handle DELETE requests that attempt to break a relationship between two entities.
Syntax
public virtual Task DeleteLink(
    TKey key,
    string relatedKey,
    string navigationProperty
)
public:
virtual Task^ DeleteLink(
    TKey key,
    String^ relatedKey,
    String^ navigationProperty
)
abstract DeleteLink : 
        key:'TKey *
        relatedKey:string *
        navigationProperty:string -> Task
override DeleteLink : 
        key:'TKey *
        relatedKey:string *
        navigationProperty:string -> Task
Public Overridable Function DeleteLink (
    key As TKey,
    relatedKey As String,
    navigationProperty As String
) As Task
Parameters
- key 
 Type: TKey- The key of the entity with the navigation property. 
- relatedKey 
 Type: System.String- The key of the related entity. 
- navigationProperty 
 Type: System.String- The name of the navigation property. 
Return Value
Type: System.Threading.Tasks.Task
A Task that completes when the link has been successfully deleted.
Return to top
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.
Syntax
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 Overridable Function DeleteLink (
    key As TKey,
    navigationProperty As String,
    link As Uri
) As 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
A Task that completes when the link has been successfully deleted.
Return to top