FormatFilterAttribute Sınıf

Tanım

Bir eylemden döndürülen içerik türünü ayarlamak için yol verilerindeki veya sorgu dizesindeki biçim değerini kullanacak bir ObjectResult 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()

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

Özellikler

IsReusable

sonucunun CreateInstance(IServiceProvider) istekler arasında yeniden kullanılıp kullanılamadığını belirten bir değer alır.

Yöntemler

CreateInstance(IServiceProvider)

öğesinin bir örneğini FormatFilteroluşturur.

Şunlara uygulanır