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.

public interface IParameterLiteralNodeMatchingPolicy : Microsoft.AspNetCore.Routing.IParameterPolicy
type IParameterLiteralNodeMatchingPolicy = interface
    interface IParameterPolicy
Public Interface IParameterLiteralNodeMatchingPolicy
Implements IParameterPolicy
Derived
Implements

Methods

MatchesLiteral(String, String)

Determines whether the given literal can match the constraint.

Applies to