共用方式為


RouteConstraintBuilder(IInlineConstraintResolver, String) 建構函式

定義

建立 實例的新實例 RouteConstraintBuilder

public:
 RouteConstraintBuilder(Microsoft::AspNetCore::Routing::IInlineConstraintResolver ^ inlineConstraintResolver, System::String ^ displayName);
public RouteConstraintBuilder (Microsoft.AspNetCore.Routing.IInlineConstraintResolver inlineConstraintResolver, string displayName);
new Microsoft.AspNetCore.Routing.RouteConstraintBuilder : Microsoft.AspNetCore.Routing.IInlineConstraintResolver * string -> Microsoft.AspNetCore.Routing.RouteConstraintBuilder
Public Sub New (inlineConstraintResolver As IInlineConstraintResolver, displayName As String)

參數

displayName
String

用於錯誤訊息) 的顯示名稱 (。

適用於