IParameterLiteralNodeMatchingPolicy Interface

Definition

Defines the contract that a class must implement in order to check if a literal value is valid for a given constraint. When a parameter implements this interface, the router is able to optimize away some paths from the route table that don't match this constraint.

C#
public interface IParameterLiteralNodeMatchingPolicy : Microsoft.AspNetCore.Routing.IParameterPolicy
Derived
Implements

Methods

MatchesLiteral(String, String)

Determines whether the given literal can match the constraint.

Applies to

Product Versions
ASP.NET Core 6.0, 7.0, 8.0, 9.0