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.
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, _
relatedKey As String, _
navigationProperty As String _
) As Task
'Usage
Dim instance As AsyncEntitySetController
Dim key As TKey
Dim relatedKey As String
Dim navigationProperty As String
Dim returnValue As Task
returnValue = instance.DeleteLink(key, _
relatedKey, navigationProperty)
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 function DeleteLink(
key : TKey,
relatedKey : String,
navigationProperty : String
) : 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
Returns Task.