Share via


UpdatedODataResult<T> Class

Definition

Represents an action result that is a response to a PUT, PATCH, or a MERGE operation on an OData entity.

public class UpdatedODataResult<T> : System.Web.Http.IHttpActionResult
public class UpdatedODataResult<T> : Microsoft.AspNetCore.Mvc.IActionResult
type UpdatedODataResult<'T> = class
    interface IHttpActionResult
type UpdatedODataResult<'T> = class
    interface IActionResult
Public Class UpdatedODataResult(Of T)
Implements IHttpActionResult
Public Class UpdatedODataResult(Of T)
Implements IActionResult

Type Parameters

T

The entity type.

Inheritance
UpdatedODataResult<T>
Implements
System.Web.Http.IHttpActionResult IActionResult

Remarks

This action result handles content negotiation and the HTTP prefer header.

Constructors

UpdatedODataResult<T>(T, ApiController)

Initializes a new instance of the UpdatedODataResult<T> class.

UpdatedODataResult<T>(T, IContentNegotiator, HttpRequestMessage, IEnumerable<MediaTypeFormatter>)

Initializes a new instance of the UpdatedODataResult<T> class.

UpdatedODataResult<T>(T)

Initializes a new instance of the UpdatedODataResult<T> class.

Properties

ContentNegotiator

Gets the content negotiator to handle content negotiation.

Entity

Gets the entity that was updated.

Formatters

Gets the formatters to use to negotiate and format the content.

Request

Gets the request message which led to this result.

Methods

ExecuteAsync(CancellationToken) System.Web.Http.IHttpActionResult.ExecuteAsync(System.Threading.CancellationToken)
ExecuteResultAsync(ActionContext)

Executes the result operation of the action method asynchronously. This method is called by MVC to process the result of an action method.

Applies to