Aracılığıyla paylaş


RouteBase.GetDefaults(RouteTemplate, RouteValueDictionary) Yöntem

Tanım

Şablonlardaki parametreler için varsayılan değerleri alır.

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

Parametreler

parsedTemplate
RouteTemplate

Bir RouteTemplate örnek.

defaults
RouteValueDictionary

Her parametre için bir varsayılanlar koleksiyonu.

Döndürülenler

Şunlara uygulanır