Share via


AsyncEntitySetController<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

[DebuggerStepThroughAttribute]
public virtual Task<HttpResponseMessage> Put(
    TKey key,
    TEntity update
)
public:
[DebuggerStepThroughAttribute]
virtual Task<HttpResponseMessage^>^ Put(
    TKey key,
    TEntity update
)
[<DebuggerStepThroughAttribute>]
abstract Put : 
        key:'TKey *
        update:'TEntity -> Task<HttpResponseMessage>
[<DebuggerStepThroughAttribute>]
override Put : 
        key:'TKey *
        update:'TEntity -> Task<HttpResponseMessage>
<DebuggerStepThroughAttribute>
Public Overridable Function Put (
    key As TKey,
    update As TEntity
) As Task(Of HttpResponseMessage)

Parameters

  • key
    Type: TKey

    The entity key of the entity to replace.

  • update
    Type: TEntity

    The updated entity.

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