UnsupportedContentTypeFilter Class

Definition

A filter that scans for UnsupportedContentTypeException in the ModelState and short-circuits the pipeline with an Unsupported Media Type (415) response.

public ref class UnsupportedContentTypeFilter : Microsoft::AspNetCore::Mvc::Filters::IActionFilter
public ref class UnsupportedContentTypeFilter : Microsoft::AspNetCore::Mvc::Filters::IActionFilter, Microsoft::AspNetCore::Mvc::Filters::IOrderedFilter
public class UnsupportedContentTypeFilter : Microsoft.AspNetCore.Mvc.Filters.IActionFilter
public class UnsupportedContentTypeFilter : Microsoft.AspNetCore.Mvc.Filters.IActionFilter, Microsoft.AspNetCore.Mvc.Filters.IOrderedFilter
type UnsupportedContentTypeFilter = class
    interface IActionFilter
    interface IFilterMetadata
type UnsupportedContentTypeFilter = class
    interface IActionFilter
    interface IFilterMetadata
    interface IOrderedFilter
Public Class UnsupportedContentTypeFilter
Implements IActionFilter
Public Class UnsupportedContentTypeFilter
Implements IActionFilter, IOrderedFilter
Inheritance
UnsupportedContentTypeFilter
Implements

Constructors

UnsupportedContentTypeFilter()

Properties

Order

Gets or sets the filter order. Order.

Defaults to -3000 to ensure it executes before ModelStateInvalidFilter.

Methods

OnActionExecuted(ActionExecutedContext)

Called after the action executes, before the action result.

OnActionExecuting(ActionExecutingContext)

Called before the action executes, after model binding is complete.

Applies to