EntitySetController<TEntity, TKey>.Post Method
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
'Declaration
Public Overridable Function Post ( _
entity As TEntity _
) As HttpResponseMessage
'Usage
Dim instance As EntitySetController
Dim entity As TEntity
Dim returnValue As HttpResponseMessage
returnValue = instance.Post(entity)
public virtual HttpResponseMessage Post(
TEntity entity
)
public:
virtual HttpResponseMessage^ Post(
TEntity entity
)
abstract Post :
entity:'TEntity -> HttpResponseMessage
override Post :
entity:'TEntity -> HttpResponseMessage
public function Post(
entity : TEntity
) : HttpResponseMessage
Parameters
- entity
Type: TEntity
The entity to insert into the entity set.
Return Value
Type: System.Net.Http.HttpResponseMessage
The response message to send back to the client.