NegotiatedContentResult<T> NegotiatedContentResult<T> NegotiatedContentResult<T> NegotiatedContentResult<T> Class

Definition

An action result that performs content negotiation.

generic <typename T>
public ref class NegotiatedContentResult : Microsoft::AspNetCore::Mvc::ObjectResult
public class NegotiatedContentResult<T> : Microsoft.AspNetCore.Mvc.ObjectResult
type NegotiatedContentResult<'T> = class
    inherit ObjectResult
Public Class NegotiatedContentResult(Of T)
Inherits ObjectResult

Type Parameters

T

The type of content in the entity body.

Inheritance
NegotiatedContentResult<T>NegotiatedContentResult<T>NegotiatedContentResult<T>NegotiatedContentResult<T>

Constructors

NegotiatedContentResult<T>(HttpStatusCode, T) NegotiatedContentResult<T>(HttpStatusCode, T) NegotiatedContentResult<T>(HttpStatusCode, T) NegotiatedContentResult<T>(HttpStatusCode, T)

Initializes a new instance of the NegotiatedContentResult<T> class with the values provided.

Properties

Content Content Content Content

Gets the content value to negotiate and format in the entity body.

ContentTypes ContentTypes ContentTypes ContentTypes Inherited from ObjectResult
DeclaredType DeclaredType DeclaredType DeclaredType Inherited from ObjectResult
Formatters Formatters Formatters Formatters Inherited from ObjectResult
StatusCode StatusCode StatusCode StatusCode

Gets or sets the HTTP status code.

(Inherited from ObjectResult)
Value Value Value Value Inherited from ObjectResult

Methods

ExecuteResult(ActionContext) ExecuteResult(ActionContext) ExecuteResult(ActionContext) ExecuteResult(ActionContext)

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

(Inherited from ActionResult)
ExecuteResultAsync(ActionContext) ExecuteResultAsync(ActionContext) ExecuteResultAsync(ActionContext) ExecuteResultAsync(ActionContext)
OnFormatting(ActionContext) OnFormatting(ActionContext) OnFormatting(ActionContext) OnFormatting(ActionContext)

This method is called before the formatter writes to the output stream.

(Inherited from ObjectResult)

Applies to