Share via


ODataController.Updated<TEntity> Method

Creates an action result with the specified values that is a response to a PUT, PATCH, or a MERGE operation on an OData entity.

Namespace:  System.Web.Http.OData
Assembly:  System.Web.Http.OData (in System.Web.Http.OData.dll)

Syntax

'Declaration
Protected Overridable Function Updated(Of TEntity) ( _
    entity As TEntity _
) As UpdatedODataResult(Of TEntity)
'Usage
Dim entity As TEntity
Dim returnValue As UpdatedODataResult(Of TEntity)

returnValue = Me.Updated(entity)
protected virtual UpdatedODataResult<TEntity> Updated<TEntity>(
    TEntity entity
)
protected:
generic<typename TEntity>
virtual UpdatedODataResult<TEntity>^ Updated(
    TEntity entity
)
abstract Updated : 
        entity:'TEntity -> UpdatedODataResult<'TEntity> 
override Updated : 
        entity:'TEntity -> UpdatedODataResult<'TEntity> 
JScript does not support generic types and methods.

Type Parameters

  • TEntity
    The updated entity type.

Parameters

  • entity
    Type: TEntity
    The updated entity.

Return Value

Type: System.Web.Http.OData.Results.UpdatedODataResult<TEntity>
An UpdatedODataResult<T> with the specified values.

See Also

Reference

ODataController Class

System.Web.Http.OData Namespace