FormatFilterAttribute 类

定义

将使用路由数据或查询字符串中的格式值设置从操作返回的内容类型 ObjectResult 的筛选器。

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
继承
FormatFilterAttribute
属性
实现

构造函数

FormatFilterAttribute()

将使用路由数据或查询字符串中的格式值设置从操作返回的内容类型 ObjectResult 的筛选器。

属性

IsReusable

获取一个值,该值指示是否可以在请求之间重复使用结果 CreateInstance(IServiceProvider)

方法

CreateInstance(IServiceProvider)

创建 FormatFilter 的实例。

适用于