RegexInlineRouteConstraint(String) 构造函数

定义

初始化 RegexInlineRouteConstraint 类的新实例。

public:
 RegexInlineRouteConstraint(System::String ^ regexPattern);
public RegexInlineRouteConstraint (string regexPattern);
new Microsoft.AspNetCore.Routing.Constraints.RegexInlineRouteConstraint : string -> Microsoft.AspNetCore.Routing.Constraints.RegexInlineRouteConstraint
Public Sub New (regexPattern As String)

参数

regexPattern
String

要匹配的正则表达式模式。

适用于