共用方式為


RouteBase.GetDefaults(RouteTemplate, RouteValueDictionary) 方法

定義

取得範本中參數的預設值。

protected:
 static Microsoft::AspNetCore::Routing::RouteValueDictionary ^ GetDefaults(Microsoft::AspNetCore::Routing::Template::RouteTemplate ^ parsedTemplate, Microsoft::AspNetCore::Routing::RouteValueDictionary ^ defaults);
protected static Microsoft.AspNetCore.Routing.RouteValueDictionary GetDefaults (Microsoft.AspNetCore.Routing.Template.RouteTemplate parsedTemplate, Microsoft.AspNetCore.Routing.RouteValueDictionary defaults);
protected static Microsoft.AspNetCore.Routing.RouteValueDictionary GetDefaults (Microsoft.AspNetCore.Routing.Template.RouteTemplate parsedTemplate, Microsoft.AspNetCore.Routing.RouteValueDictionary? defaults);
static member GetDefaults : Microsoft.AspNetCore.Routing.Template.RouteTemplate * Microsoft.AspNetCore.Routing.RouteValueDictionary -> Microsoft.AspNetCore.Routing.RouteValueDictionary
Protected Shared Function GetDefaults (parsedTemplate As RouteTemplate, defaults As RouteValueDictionary) As RouteValueDictionary

參數

parsedTemplate
RouteTemplate

RouteTemplate 執行個體。

defaults
RouteValueDictionary

每個參數的預設值集合。

傳回

適用於