FilterDescriptor 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.
Descriptor for an IFilterMetadata.
public ref class FilterDescriptor
public class FilterDescriptor
type FilterDescriptor = class
Public Class FilterDescriptor
- Inheritance
-
FilterDescriptor
Remarks
FilterDescriptor describes an IFilterMetadata with an order and scope.
Order and scope control the execution order of filters. Filters with a higher value of Order execute later in the pipeline.
When filters have the same Order, the Scope value is used to determine the order of execution. Filters with a higher value of Scope execute later in the pipeline. See Microsoft.AspNetCore.Mvc.FilterScope
for commonly used scopes.
For IExceptionFilter implementations, the filter runs only after an exception has occurred, and so the observed order of execution will be opposite that of other filters.
Constructors
FilterDescriptor(IFilterMetadata, Int32) |
Creates a new FilterDescriptor. |
Properties
Filter |
The IFilterMetadata instance. |
Order |
The filter order. |
Scope |
The filter scope. |