EntitySetController<TEntity, TKey>.Post Method (TEntity)
Handles POST requests that create new entities in the entity set.
Namespace: System.Web.Http.OData
Assembly: System.Web.Http.OData (in System.Web.Http.OData.dll)
Syntax
public virtual HttpResponseMessage Post(
TEntity entity
)
public:
virtual HttpResponseMessage^ Post(
TEntity entity
)
abstract Post :
entity:'TEntity -> HttpResponseMessage
override Post :
entity:'TEntity -> HttpResponseMessage
Public Overridable Function Post (
entity As TEntity
) As HttpResponseMessage
Parameters
entity
Type: TEntityThe entity to insert into the entity set.
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