TypeFilterAttribute<TFilter> Třída

Definice

Filtr, který vytvoří další filtr typu ImplementationType, který načte chybějící argumenty konstruktoru z injektáže závislostí, pokud je tam k dispozici.

public class TypeFilterAttribute<TFilter> : Microsoft.AspNetCore.Mvc.TypeFilterAttribute where TFilter : IFilterMetadata
type TypeFilterAttribute<'Filter (requires 'Filter :> IFilterMetadata)> = class
    inherit TypeFilterAttribute
Public Class TypeFilterAttribute(Of TFilter)
Inherits TypeFilterAttribute

Parametry typu

TFilter

Filtr Type of, který chcete vytvořit.

Dědičnost
TypeFilterAttribute<TFilter>

Konstruktory

TypeFilterAttribute<TFilter>()

Vytvoří instanci nové TypeFilterAttribute instance.

Vlastnosti

Arguments

Získá nebo nastaví jiné než service argumenty předat konstruktoru ImplementationType .

(Zděděno od TypeFilterAttribute)
ImplementationType

Type Získá filtr of, který chcete vytvořit.

(Zděděno od TypeFilterAttribute)
IsReusable

Získá hodnotu, která označuje, zda výsledek CreateInstance(IServiceProvider) lze znovu použít napříč požadavky.

(Zděděno od TypeFilterAttribute)
Order

Získá hodnotu objednávky pro určení pořadí provádění filtrů. Filtry se spouštějí ve vzestupné číselné hodnotě Order vlastnosti.

(Zděděno od TypeFilterAttribute)

Metody

CreateInstance(IServiceProvider)

Vytvoří instanci spustitelného filtru.

(Zděděno od TypeFilterAttribute)

Platí pro