FormatFilterAttribute FormatFilterAttribute FormatFilterAttribute Class

Definition

A filter that will use the format value in the route data or query string to set the content type on an ObjectResult returned from an action.

[System.AttributeUsage(System.AttributeTargets.Class | System.AttributeTargets.Method, AllowMultiple=false, Inherited=true)]
public class FormatFilterAttribute : Attribute, Microsoft.AspNetCore.Mvc.Filters.IFilterFactory
type FormatFilterAttribute = class
    inherit Attribute
    interface IFilterFactory
    interface IFilterMetadata
Public Class FormatFilterAttribute
Inherits Attribute
Implements IFilterFactory
Inheritance
FormatFilterAttributeFormatFilterAttributeFormatFilterAttribute
Attributes
Implements

Constructors

FormatFilterAttribute() FormatFilterAttribute() FormatFilterAttribute()

Properties

IsReusable IsReusable IsReusable

Methods

CreateInstance(IServiceProvider) CreateInstance(IServiceProvider) CreateInstance(IServiceProvider)

Creates an instance of FormatFilter.

Applies to