Dela via


RegexRouteConstraint Constructors

Definition

Overloads

RegexRouteConstraint(String)

Constructor for a RegexRouteConstraint given a regexPattern.

RegexRouteConstraint(Regex)

Constructor for a RegexRouteConstraint given a regex.

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)

Parameters

regex
Regex

A Regex instance to use as a constraint.

Applies to