FormatFilterAttribute Sınıf

Tanım

Bir eylemden döndürülen içerik türünü ayarlamak için yol verileri veya sorgu dizesinde biçim ObjectResult değerini kullanan bir filtre.

public ref class FormatFilterAttribute : Attribute, Microsoft::AspNetCore::Mvc::Filters::IFilterFactory
[System.AttributeUsage(System.AttributeTargets.Class | System.AttributeTargets.Method, AllowMultiple=false, Inherited=true)]
public class FormatFilterAttribute : Attribute, Microsoft.AspNetCore.Mvc.Filters.IFilterFactory
[<System.AttributeUsage(System.AttributeTargets.Class | System.AttributeTargets.Method, AllowMultiple=false, Inherited=true)>]
type FormatFilterAttribute = class
    inherit Attribute
    interface IFilterFactory
    interface IFilterMetadata
Public Class FormatFilterAttribute
Inherits Attribute
Implements IFilterFactory
Devralma
FormatFilterAttribute
Öznitelikler
Uygulamalar

Oluşturucular

FormatFilterAttribute()

Özellikler

IsReusable

sonucun istekler arasında yeniden CreateInstance(IServiceProvider) kullanılap kullanılamayacaklarını belirten bir değer alır.

Yöntemler

CreateInstance(IServiceProvider)

bir örneği FormatFilter oluşturur.

Şunlara uygulanır