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

[AcceptVerbsAttribute(new string[] { ... })]
public virtual HttpResponseMessage Patch(
    TKey key,
    Delta<TEntity> patch
)
public:
[AcceptVerbsAttribute(new array<String^>^ { ... })]
virtual HttpResponseMessage^ Patch(
    TKey key,
    Delta<TEntity>^ patch
)
[<AcceptVerbsAttribute([| ... |])>]
abstract Patch : 
        key:'TKey *
        patch:Delta<'TEntity> -> HttpResponseMessage
[<AcceptVerbsAttribute([| ... |])>]
override Patch : 
        key:'TKey *
        patch:Delta<'TEntity> -> HttpResponseMessage
<AcceptVerbsAttribute(New String() { ... })>
Public Overridable Function Patch (
    key As TKey,
    patch As Delta(Of TEntity)
) As HttpResponseMessage

Parameters

  • key
    Type: TKey

    The entity key of the entity to update.

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