Share via


EntitySetController<TEntity, TKey>.Delete Method

This method should be overridden to handle 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 Sub Delete ( _
    key As TKey _
)
'Usage
Dim instance As EntitySetController 
Dim key As TKey

instance.Delete(key)
public virtual void Delete(
    TKey key
)
public:
virtual void Delete(
    TKey key
)
abstract Delete : 
        key:'TKey -> unit  
override Delete : 
        key:'TKey -> unit
public function Delete(
    key : TKey
)

Parameters

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

See Also

Reference

EntitySetController<TEntity, TKey> Class

System.Web.Http.OData Namespace