UnsupportedContentTypeFilter Class
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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 |
Methods
OnActionExecuted(ActionExecutedContext) |
Called after the action executes, before the action result. |
OnActionExecuting(ActionExecutingContext) |
Called before the action executes, after model binding is complete. |