IActionConstraintFactory Interface
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 factory for IActionConstraint.
public interface class IActionConstraintFactory : Microsoft::AspNetCore::Mvc::ActionConstraints::IActionConstraintMetadata
public interface IActionConstraintFactory : Microsoft.AspNetCore.Mvc.ActionConstraints.IActionConstraintMetadata
type IActionConstraintFactory = interface
interface IActionConstraintMetadata
Public Interface IActionConstraintFactory
Implements IActionConstraintMetadata
- Implements
IActionConstraintFactory will be invoked during action selection to create constraint instances for an action.
Place an attribute implementing this interface on a controller or action to insert an action constraint created by a factory.
Is |
Gets a value that indicates if the result of CreateInstance(IServiceProvider) can be reused across requests. |
Create |
Creates a new IActionConstraint. |
Product | Versions |
---|---|
ASP.NET Core | 1.0, 1.1, 2.0, 2.1, 2.2, 3.0, 3.1, 5.0, 6.0, 7.0, 8.0, 9.0 |