Share via


AsyncEntitySetController<TEntity, TKey>.Delete Method

This method should be overridden to handles DELETE requests for deleting existing entities from the entity set.

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

Syntax

'Declaration
Public Overridable Function Delete ( _
    key As TKey _
) As Task
'Usage
Dim instance As AsyncEntitySetController 
Dim key As TKey
Dim returnValue As Task 

returnValue = instance.Delete(key)
public virtual Task Delete(
    TKey key
)
public:
virtual Task^ Delete(
    TKey key
)
abstract Delete : 
        key:'TKey -> Task  
override Delete : 
        key:'TKey -> Task
public function Delete(
    key : TKey
) : Task

Parameters

  • key
    Type: TKey
    The entity key of the entity to delete.

Return Value

Type: System.Threading.Tasks.Task
A Task that completes when the entity has been successfully deleted.

See Also

Reference

AsyncEntitySetController<TEntity, TKey> Class

System.Web.Http.OData Namespace