FormatFilterAttribute Clase

Definición

Filtro que usará el valor de formato en los datos de ruta o la cadena de consulta para establecer el tipo de contenido en un ObjectResult devuelto de una acción.

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
Herencia
FormatFilterAttribute
Atributos
Implementaciones

Constructores

FormatFilterAttribute()

Filtro que usará el valor de formato en los datos de ruta o la cadena de consulta para establecer el tipo de contenido en un ObjectResult devuelto de una acción.

Propiedades

IsReusable

Obtiene un valor que indica si el resultado de CreateInstance(IServiceProvider) se puede reutilizar entre solicitudes.

Métodos

CreateInstance(IServiceProvider)

Crea una instancia de FormatFilter.

Se aplica a