Share via


AsyncEntitySetController<TEntity, TKey>.Patch Method (TKey, Delta<TEntity>)

 

Handles PATCH and MERGE requests to partially update 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]
[AcceptVerbsAttribute(new string[] { ... })]
public virtual Task<HttpResponseMessage> Patch(
    TKey key,
    Delta<TEntity> patch
)
public:
[DebuggerStepThroughAttribute]
[AcceptVerbsAttribute(new array<String^>^ { ... })]
virtual Task<HttpResponseMessage^>^ Patch(
    TKey key,
    Delta<TEntity>^ patch
)
[<DebuggerStepThroughAttribute>]
[<AcceptVerbsAttribute([| ... |])>]
abstract Patch : 
        key:'TKey *
        patch:Delta<'TEntity> -> Task<HttpResponseMessage>
[<DebuggerStepThroughAttribute>]
[<AcceptVerbsAttribute([| ... |])>]
override Patch : 
        key:'TKey *
        patch:Delta<'TEntity> -> Task<HttpResponseMessage>
<DebuggerStepThroughAttribute>
<AcceptVerbsAttribute(New String() { ... })>
Public Overridable Function Patch (
    key As TKey,
    patch As Delta(Of TEntity)
) As Task(Of HttpResponseMessage)

Parameters

  • key
    Type: TKey

    The entity key of the entity to update.

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