RegexRouteConstraint 构造函数
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
重载
RegexRouteConstraint(String) |
给定 |
RegexRouteConstraint(Regex) |
给定 |
RegexRouteConstraint(String)
- Source:
- RegexRouteConstraint.cs
- Source:
- RegexRouteConstraint.cs
- Source:
- RegexRouteConstraint.cs
给定 regexPattern
的RegexRouteConstraint构造函数。
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
给定 regex
的RegexRouteConstraint构造函数。
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)