AsyncEntitySetController<TEntity, TKey>.Patch Method
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
'Declaration
<AcceptVerbsAttribute()> _
Public Overridable Function Patch ( _
key As TKey, _
patch As Delta(Of TEntity) _
) As Task(Of HttpResponseMessage)
'Usage
Dim instance As AsyncEntitySetController
Dim key As TKey
Dim patch As Delta(Of TEntity)
Dim returnValue As Task(Of HttpResponseMessage)
returnValue = instance.Patch(key, patch)
[AcceptVerbsAttribute()]
public virtual Task<HttpResponseMessage> Patch(
TKey key,
Delta<TEntity> patch
)
[AcceptVerbsAttribute()]
public:
virtual Task<HttpResponseMessage^>^ Patch(
TKey key,
Delta<TEntity>^ patch
)
[<AcceptVerbsAttribute()>]
abstract Patch :
key:'TKey *
patch:Delta<'TEntity> -> Task<HttpResponseMessage>
[<AcceptVerbsAttribute()>]
override Patch :
key:'TKey *
patch:Delta<'TEntity> -> Task<HttpResponseMessage>
public function Patch(
key : TKey,
patch : Delta<TEntity>
) : Task<HttpResponseMessage>
Parameters
- key
Type: TKey
The 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.