Partilhar via


RouteBase.GetDefaults(RouteTemplate, RouteValueDictionary) Método

Definição

Obtém os valores padrão para parâmetros em um modelo.

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

Parâmetros

parsedTemplate
RouteTemplate

Uma instância de RouteTemplate.

defaults
RouteValueDictionary

Uma coleção de padrões para cada parâmetro.

Retornos

Aplica-se a