MiddlewareFilterAttribute 類別
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
執行 所提供的 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) |
建立可執行篩選準則的實例。 |
適用於
意見反應
https://aka.ms/ContentUserFeedback。
即將登場:在 2024 年,我們將逐步淘汰 GitHub 問題作為內容的意見反應機制,並將它取代為新的意見反應系統。 如需詳細資訊,請參閱:提交並檢視相關的意見反應