Share via


RegexRouteConstraint Constructor (String)

 

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

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

Syntax

public RegexRouteConstraint(
    string pattern
)
public:
RegexRouteConstraint(
    String^ pattern
)
new : 
        pattern:string -> RegexRouteConstraint
Public Sub New (
    pattern As String
)

Parameters

See Also

RegexRouteConstraint Class
System.Web.Mvc.Routing.Constraints Namespace

Return to top