MiddlewareFilterAttribute 類別

定義

執行 所提供的 ConfigurationType 中介軟體管線。 中介軟體管線會被視為非同步資源篩選器。

public ref class MiddlewareFilterAttribute : Attribute, Microsoft::AspNetCore::Mvc::Filters::IFilterFactory, Microsoft::AspNetCore::Mvc::Filters::IOrderedFilter
[System.AttributeUsage(System.AttributeTargets.Class | System.AttributeTargets.Method, AllowMultiple=true, Inherited=true)]
public class MiddlewareFilterAttribute : Attribute, Microsoft.AspNetCore.Mvc.Filters.IFilterFactory, Microsoft.AspNetCore.Mvc.Filters.IOrderedFilter
[<System.AttributeUsage(System.AttributeTargets.Class | System.AttributeTargets.Method, AllowMultiple=true, Inherited=true)>]
type MiddlewareFilterAttribute = class
    inherit Attribute
    interface IFilterFactory
    interface IFilterMetadata
    interface IOrderedFilter
Public Class MiddlewareFilterAttribute
Inherits Attribute
Implements IFilterFactory, IOrderedFilter
繼承
MiddlewareFilterAttribute
衍生
屬性
實作

建構函式

MiddlewareFilterAttribute(Type)

執行個體化 MiddlewareFilterAttribute 的新執行個體。

屬性

ConfigurationType

設定中介軟體管線的類型。

IsReusable

取得值,這個值表示 是否可以跨要求重複使用 的結果 CreateInstance(IServiceProvider)

Order

取得決定篩選準則執行順序的順序值。 篩選會以屬性的 Order 遞增數值執行。

方法

CreateInstance(IServiceProvider)

建立可執行篩選準則的實例。

適用於