Udostępnij za pośrednictwem


RouteBase.GetDefaults(RouteTemplate, RouteValueDictionary) Metoda

Definicja

Pobiera wartości domyślne parametrów w szablonach.

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

Parametry

parsedTemplate
RouteTemplate

RouteTemplate Wystąpienie.

defaults
RouteValueDictionary

Kolekcja wartości domyślnych dla każdego parametru.

Zwraca

Dotyczy