UnsupportedContentTypeFilter UnsupportedContentTypeFilter UnsupportedContentTypeFilter 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, Microsoft::AspNetCore::Mvc::Filters::IOrderedFilter
public class UnsupportedContentTypeFilter : Microsoft.AspNetCore.Mvc.Filters.IActionFilter, Microsoft.AspNetCore.Mvc.Filters.IOrderedFilter
type UnsupportedContentTypeFilter = class
    interface IActionFilter
    interface IFilterMetadata
    interface IOrderedFilter
Public Class UnsupportedContentTypeFilter
Implements IActionFilter, IOrderedFilter
Inheritance
UnsupportedContentTypeFilterUnsupportedContentTypeFilterUnsupportedContentTypeFilterUnsupportedContentTypeFilter
Implements

Constructors

UnsupportedContentTypeFilter() UnsupportedContentTypeFilter() UnsupportedContentTypeFilter() UnsupportedContentTypeFilter()

Properties

Order Order Order Order

Gets or sets the filter order. Order.

Defaults to -3000 to ensure it executes before ModelStateInvalidFilter.

Methods

OnActionExecuted(ActionExecutedContext) OnActionExecuted(ActionExecutedContext) OnActionExecuted(ActionExecutedContext) OnActionExecuted(ActionExecutedContext)
OnActionExecuting(ActionExecutingContext) OnActionExecuting(ActionExecutingContext) OnActionExecuting(ActionExecutingContext) OnActionExecuting(ActionExecutingContext)

Applies to