AsyncEntitySetController<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
[DebuggerStepThroughAttribute]
public virtual Task<HttpResponseMessage> Post(
TEntity entity
)
public:
[DebuggerStepThroughAttribute]
virtual Task<HttpResponseMessage^>^ Post(
TEntity entity
)
[<DebuggerStepThroughAttribute>]
abstract Post :
entity:'TEntity -> Task<HttpResponseMessage>
[<DebuggerStepThroughAttribute>]
override Post :
entity:'TEntity -> Task<HttpResponseMessage>
<DebuggerStepThroughAttribute>
Public Overridable Function Post (
entity As TEntity
) As Task(Of HttpResponseMessage)
Parameters
entity
Type: TEntityThe entity to insert into the entity set.
Return Value
Type: System.Threading.Tasks.Task<HttpResponseMessage>
A Task that contains the response message to send back to the client when it completes.
See Also
AsyncEntitySetController<TEntity, TKey> Class
System.Web.Http.OData Namespace
Return to top