Aracılığıyla paylaş


UnsupportedContentTypeFilter Sınıf

Tanım

ve içinde ModelState öğesini tarayan UnsupportedContentTypeException bir filtre, desteklenmeyen Medya Türü (415) yanıtıyla işlem hattını kısa devreye bağlar.

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
Devralma
UnsupportedContentTypeFilter
Uygulamalar

Oluşturucular

UnsupportedContentTypeFilter()

ve içinde ModelState öğesini tarayan UnsupportedContentTypeException bir filtre, desteklenmeyen Medya Türü (415) yanıtıyla işlem hattını kısa devreye bağlar.

Özellikler

Order

Filtre sırasını alır veya ayarlar. Order.

öğesinin öncesinde ModelStateInvalidFilteryürütülmesini sağlamak için -3000 varsayılan olarak ayarlanır.

Yöntemler

OnActionExecuted(ActionExecutedContext)

Eylem yürütülürken, eylem sonucundan önce çağrılır.

OnActionExecuting(ActionExecutingContext)

Eylem yürütülmeden önce, model bağlaması tamamlandıktan sonra çağrılır.

Şunlara uygulanır