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 的執行個體。

適用於