ServiceFilterAttribute<TFilter> Class

Definition

A filter that finds another filter in an IServiceProvider.

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

Type Parameters

TFilter

The Type of filter to find.

Inheritance
ServiceFilterAttribute<TFilter>

Constructors

ServiceFilterAttribute<TFilter>()

Instantiates a new ServiceFilterAttribute instance.

Properties

IsReusable

Gets a value that indicates if the result of CreateInstance(IServiceProvider) can be reused across requests.

(Inherited from ServiceFilterAttribute)
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 ServiceFilterAttribute)
ServiceType

Gets the Type of filter to find.

(Inherited from ServiceFilterAttribute)

Methods

CreateInstance(IServiceProvider)

Creates an instance of the executable filter.

(Inherited from ServiceFilterAttribute)

Applies to