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: TKeyThe entity key of the entity to update.
patch
Type: System.Web.Http.OData.Delta<TEntity>The patch representing the partial 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