UnsupportedContentTypeFilter Class

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

Namespace
Microsoft.AspNetCore.Mvc.ModelBinding
Assemblies
  • Microsoft.AspNetCore.Mvc.Core

Syntax

public class UnsupportedContentTypeFilter : IActionFilter, IFilterMetadata
class Microsoft.AspNetCore.Mvc.ModelBinding.UnsupportedContentTypeFilter

Methods

OnActionExecuted(Microsoft.AspNetCore.Mvc.Filters.ActionExecutedContext)
public void OnActionExecuted(ActionExecutedContext context)
OnActionExecuting(Microsoft.AspNetCore.Mvc.Filters.ActionExecutingContext)
public void OnActionExecuting(ActionExecutingContext context)