RegexRouteConstraint 构造函数

定义

重载

RegexRouteConstraint(String)

给定 regexPatternRegexRouteConstraint构造函数。

RegexRouteConstraint(Regex)

给定 regexRegexRouteConstraint构造函数。

RegexRouteConstraint(String)

Source:
RegexRouteConstraint.cs
Source:
RegexRouteConstraint.cs
Source:
RegexRouteConstraint.cs

给定 regexPatternRegexRouteConstraint构造函数。

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)

参数

regexPattern
String

包含正则表达式模式的字符串。

适用于

RegexRouteConstraint(Regex)

Source:
RegexRouteConstraint.cs
Source:
RegexRouteConstraint.cs
Source:
RegexRouteConstraint.cs

给定 regexRegexRouteConstraint构造函数。

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)

参数

regex
Regex

Regex 用作约束的 实例。

适用于