Export (0) Print
Expand All

RegexRouteConstraint Class

Constrains a route parameter to match a regular expression.

System.Object
  System.Web.Mvc.Routing.Constraints.RegexRouteConstraint
    System.Web.Mvc.Routing.Constraints.AlphaRouteConstraint

Namespace:  System.Web.Mvc.Routing.Constraints
Assembly:  System.Web.Mvc (in System.Web.Mvc.dll)

public class RegexRouteConstraint : IRouteConstraint

The RegexRouteConstraint type exposes the following members.

  NameDescription
Public methodRegexRouteConstraintInitializes a new instance of the RegexRouteConstraint class with the specified pattern.
Top

  NameDescription
Public propertyPatternGets the regular expression pattern to match.
Top

  NameDescription
Public methodEquals (Inherited from Object.)
Protected methodFinalize (Inherited from Object.)
Public methodGetHashCode (Inherited from Object.)
Public methodGetType (Inherited from Object.)
Public methodMatchDetermines whether this instance equals a specified route.
Protected methodMemberwiseClone (Inherited from Object.)
Public methodToString (Inherited from Object.)
Top

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
Show:
© 2014 Microsoft