Compartilhar via


AttributeRouteModel.ReplaceTokens Método

Definição

Sobrecargas

ReplaceTokens(String, IDictionary<String,String>)

Substitui os tokens no modelo pelos valores fornecidos.

ReplaceTokens(String, IDictionary<String,String>, IOutboundParameterTransformer)

Substitui os tokens no modelo pelos valores fornecidos e pelo transformador de token de rota.

ReplaceTokens(String, IDictionary<String,String>)

Origem:
AttributeRouteModel.cs
Origem:
AttributeRouteModel.cs
Origem:
AttributeRouteModel.cs

Substitui os tokens no modelo pelos valores fornecidos.

public:
 static System::String ^ ReplaceTokens(System::String ^ template, System::Collections::Generic::IDictionary<System::String ^, System::String ^> ^ values);
public static string ReplaceTokens (string template, System.Collections.Generic.IDictionary<string,string> values);
public static string ReplaceTokens (string template, System.Collections.Generic.IDictionary<string,string?> values);
static member ReplaceTokens : string * System.Collections.Generic.IDictionary<string, string> -> string
Public Shared Function ReplaceTokens (template As String, values As IDictionary(Of String, String)) As String

Parâmetros

template
String

O modelo.

values
IDictionary<String,String>

Os valores de token a serem usados.

Retornos

Uma nova cadeia de caracteres com os valores substituídos.

Aplica-se a

ReplaceTokens(String, IDictionary<String,String>, IOutboundParameterTransformer)

Origem:
AttributeRouteModel.cs
Origem:
AttributeRouteModel.cs

Substitui os tokens no modelo pelos valores fornecidos e pelo transformador de token de rota.

public:
 static System::String ^ ReplaceTokens(System::String ^ template, System::Collections::Generic::IDictionary<System::String ^, System::String ^> ^ values, Microsoft::AspNetCore::Routing::IOutboundParameterTransformer ^ routeTokenTransformer);
public static string ReplaceTokens (string template, System.Collections.Generic.IDictionary<string,string> values, Microsoft.AspNetCore.Routing.IOutboundParameterTransformer routeTokenTransformer);
public static string ReplaceTokens (string template, System.Collections.Generic.IDictionary<string,string?> values, Microsoft.AspNetCore.Routing.IOutboundParameterTransformer? routeTokenTransformer);
static member ReplaceTokens : string * System.Collections.Generic.IDictionary<string, string> * Microsoft.AspNetCore.Routing.IOutboundParameterTransformer -> string
Public Shared Function ReplaceTokens (template As String, values As IDictionary(Of String, String), routeTokenTransformer As IOutboundParameterTransformer) As String

Parâmetros

template
String

O modelo.

values
IDictionary<String,String>

Os valores de token a serem usados.

routeTokenTransformer
IOutboundParameterTransformer

O transformador de token de rota.

Retornos

Uma nova cadeia de caracteres com os valores substituídos.

Aplica-se a