共用方式為


OptionalRouteConstraint(IRouteConstraint) 建構函式

定義

指定 innerConstraint ,建立新的 OptionalRouteConstraint 實例。

public:
 OptionalRouteConstraint(Microsoft::AspNetCore::Routing::IRouteConstraint ^ innerConstraint);
public OptionalRouteConstraint (Microsoft.AspNetCore.Routing.IRouteConstraint innerConstraint);
new Microsoft.AspNetCore.Routing.Constraints.OptionalRouteConstraint : Microsoft.AspNetCore.Routing.IRouteConstraint -> Microsoft.AspNetCore.Routing.Constraints.OptionalRouteConstraint
Public Sub New (innerConstraint As IRouteConstraint)

參數

innerConstraint
IRouteConstraint

適用於