RegexRouteConstraint Class

Definition

Constrains a route parameter to match a regular expression.

public class RegexRouteConstraint : System.Web.Routing.IRouteConstraint
type RegexRouteConstraint = class
    interface IRouteConstraint
Public Class RegexRouteConstraint
Implements IRouteConstraint
Inheritance
RegexRouteConstraint
Derived
Implements

Constructors

RegexRouteConstraint(String)

Initializes a new instance of the RegexRouteConstraint class with the specified pattern.

Properties

Pattern

Gets the regular expression pattern to match.

Methods

Match(HttpContextBase, Route, String, RouteValueDictionary, RouteDirection)

Determines whether this instance equals a specified route.

Applies to