Dela via


RegexInlineRouteConstraint Class

Definition

Represents a regex constraint which can be used as an inlineConstraint.

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

Constructors

RegexInlineRouteConstraint(String)

Initializes a new instance of the RegexInlineRouteConstraint 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