UnsupportedMediaTypeResult UnsupportedMediaTypeResult UnsupportedMediaTypeResult UnsupportedMediaTypeResult Class

Definition

A StatusCodeResult that when executed will produce a UnsupportedMediaType (415) response.

public ref class UnsupportedMediaTypeResult : Microsoft::AspNetCore::Mvc::StatusCodeResult
[Microsoft.AspNetCore.Mvc.Infrastructure.DefaultStatusCode(415)]
public class UnsupportedMediaTypeResult : Microsoft.AspNetCore.Mvc.StatusCodeResult
type UnsupportedMediaTypeResult = class
    inherit StatusCodeResult
Public Class UnsupportedMediaTypeResult
Inherits StatusCodeResult
Inheritance
UnsupportedMediaTypeResultUnsupportedMediaTypeResultUnsupportedMediaTypeResultUnsupportedMediaTypeResult
Attributes

Constructors

UnsupportedMediaTypeResult() UnsupportedMediaTypeResult() UnsupportedMediaTypeResult() UnsupportedMediaTypeResult()

Creates a new instance of UnsupportedMediaTypeResult.

Methods

ExecuteResult(ActionContext) ExecuteResult(ActionContext) ExecuteResult(ActionContext) ExecuteResult(ActionContext) Inherited from StatusCodeResult
ExecuteResultAsync(ActionContext) ExecuteResultAsync(ActionContext) ExecuteResultAsync(ActionContext) 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. The default implementation of this method calls the ExecuteResult(ActionContext) method and returns a completed task.

(Inherited from ActionResult)

Properties

IStatusCodeActionResult.StatusCode IStatusCodeActionResult.StatusCode IStatusCodeActionResult.StatusCode IStatusCodeActionResult.StatusCode Inherited from StatusCodeResult
StatusCode StatusCode StatusCode StatusCode

Gets the HTTP status code.

(Inherited from StatusCodeResult)

Applies to