AlphaRouteConstraint Class

Definition

Constrains a route parameter to contain only lowercase or uppercase letters A through Z in the English alphabet.

public ref class AlphaRouteConstraint : Microsoft::AspNetCore::Routing::Constraints::RegexRouteConstraint
public class AlphaRouteConstraint : Microsoft.AspNetCore.Routing.Constraints.RegexRouteConstraint
type AlphaRouteConstraint = class
    inherit RegexRouteConstraint
Public Class AlphaRouteConstraint
Inherits RegexRouteConstraint
Inheritance
AlphaRouteConstraint

Constructors

AlphaRouteConstraint()

Initializes a new instance of the AlphaRouteConstraint class.

Properties

Constraint

Gets the regular expression used in the route constraint.

(Inherited from RegexRouteConstraint)

Methods

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

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

(Inherited from RegexRouteConstraint)

Explicit Interface Implementations

IParameterLiteralNodeMatchingPolicy.MatchesLiteral(String, String) (Inherited from RegexRouteConstraint)

Applies to