Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
This method should be overridden to update an existing entity in the entity set.
Namespace: System.Web.Http.OData
Assembly: System.Web.Http.OData (in System.Web.Http.OData.dll)
Syntax
protected internal virtual Task<TEntity> UpdateEntityAsync(
TKey key,
TEntity update
)
public protected:
virtual Task<TEntity>^ UpdateEntityAsync(
TKey key,
TEntity update
)
abstract UpdateEntityAsync :
key:'TKey *
update:'TEntity -> Task<'TEntity>
override UpdateEntityAsync :
key:'TKey *
update:'TEntity -> Task<'TEntity>
Protected Friend Overridable Function UpdateEntityAsync (
key As TKey,
update As TEntity
) As Task(Of TEntity)
Parameters
key
Type: TKeyThe entity key of the entity to update.
update
Type: TEntityThe updated entity.
Return Value
Type: System.Threading.Tasks.Task<TEntity>
A Task that contains the updated entity when it completes.
See Also
AsyncEntitySetController<TEntity, TKey> Class
System.Web.Http.OData Namespace
Return to top