共用方式為


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

要比對的規則運算式模式。

適用於