EntitySetController<TEntity, TKey>.Put Method (TKey, TEntity)
Handles PUT requests that attempt to replace a single entity in the entity set.
Namespace: System.Web.Http.OData
Assembly: System.Web.Http.OData (in System.Web.Http.OData.dll)
Syntax
public virtual HttpResponseMessage Put(
TKey key,
TEntity update
)
public:
virtual HttpResponseMessage^ Put(
TKey key,
TEntity update
)
abstract Put :
key:'TKey *
update:'TEntity -> HttpResponseMessage
override Put :
key:'TKey *
update:'TEntity -> HttpResponseMessage
Public Overridable Function Put (
key As TKey,
update As TEntity
) As HttpResponseMessage
Parameters
key
Type: TKeyThe entity key of the entity to replace.
update
Type: TEntityThe updated entity.
Return Value
Type: System.Net.Http.HttpResponseMessage
The response message to send back to the client.
See Also
EntitySetController<TEntity, TKey> Class
System.Web.Http.OData Namespace
Return to top