Share via


MaxRouteConstraint Class

Definition

Constrains a route parameter to be an integer with a maximum value.

public ref class MaxRouteConstraint : Microsoft::AspNetCore::Routing::IRouteConstraint
public class MaxRouteConstraint : Microsoft.AspNetCore.Routing.IRouteConstraint
public class MaxRouteConstraint : Microsoft.AspNetCore.Routing.IRouteConstraint, Microsoft.AspNetCore.Routing.Matching.IParameterLiteralNodeMatchingPolicy
type MaxRouteConstraint = class
    interface IRouteConstraint
type MaxRouteConstraint = class
    interface IRouteConstraint
    interface IParameterPolicy
    interface IParameterLiteralNodeMatchingPolicy
type MaxRouteConstraint = class
    interface IRouteConstraint
    interface IParameterPolicy
type MaxRouteConstraint = class
    interface IParameterPolicy
    interface IRouteConstraint
Public Class MaxRouteConstraint
Implements IRouteConstraint
Public Class MaxRouteConstraint
Implements IParameterLiteralNodeMatchingPolicy, IRouteConstraint
Inheritance
MaxRouteConstraint
Implements

Constructors

Name Description
MaxRouteConstraint(Int64)

Initializes a new instance of the MaxRouteConstraint class.

Properties

Name Description
Max

Gets the maximum allowed value of the route parameter.

Methods

Name Description
Match(HttpContext, IRouter, String, RouteValueDictionary, RouteDirection)

Determines whether the URL parameter contains a valid value for this constraint.

Explicit Interface Implementations

Name Description
IParameterLiteralNodeMatchingPolicy.MatchesLiteral(String, String)

Applies to