TypeFilterAttribute<TFilter> Class
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
A filter that creates another filter of type ImplementationType, retrieving missing constructor arguments from dependency injection if available there.
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
Type Parameters
- TFilter
The Type of filter to create.
- Inheritance
Constructors
TypeFilterAttribute<TFilter>() |
Instantiates a new TypeFilterAttribute instance. |
Properties
Arguments |
Gets or sets the non-service arguments to pass to the ImplementationType constructor. (Inherited from TypeFilterAttribute) |
ImplementationType |
Gets the Type of filter to create. (Inherited from TypeFilterAttribute) |
IsReusable |
Gets a value that indicates if the result of CreateInstance(IServiceProvider) can be reused across requests. (Inherited from TypeFilterAttribute) |
Order |
Gets the order value for determining the order of execution of filters. Filters execute in ascending numeric value of the Order property. (Inherited from TypeFilterAttribute) |
Methods
CreateInstance(IServiceProvider) |
Creates an instance of the executable filter. (Inherited from TypeFilterAttribute) |