RegexRouteConstraint Constructors
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
RegexRouteConstraint(String) |
Constructor for a RegexRouteConstraint given a |
RegexRouteConstraint(Regex) |
Constructor for a RegexRouteConstraint given a |
RegexRouteConstraint(String)
- Source:
- RegexRouteConstraint.cs
- Source:
- RegexRouteConstraint.cs
- Source:
- RegexRouteConstraint.cs
Constructor for a RegexRouteConstraint given a regexPattern
.
public:
RegexRouteConstraint(System::String ^ regexPattern);
public RegexRouteConstraint (string regexPattern);
new Microsoft.AspNetCore.Routing.Constraints.RegexRouteConstraint : string -> Microsoft.AspNetCore.Routing.Constraints.RegexRouteConstraint
Public Sub New (regexPattern As String)
Parameters
- regexPattern
- String
A string containing the regex pattern.
Applies to
RegexRouteConstraint(Regex)
- Source:
- RegexRouteConstraint.cs
- Source:
- RegexRouteConstraint.cs
- Source:
- RegexRouteConstraint.cs
Constructor for a RegexRouteConstraint given a regex
.
public:
RegexRouteConstraint(System::Text::RegularExpressions::Regex ^ regex);
public RegexRouteConstraint (System.Text.RegularExpressions.Regex regex);
new Microsoft.AspNetCore.Routing.Constraints.RegexRouteConstraint : System.Text.RegularExpressions.Regex -> Microsoft.AspNetCore.Routing.Constraints.RegexRouteConstraint
Public Sub New (regex As Regex)