Share via


AttributeRouteModel.ReplaceTokens Method

Definition

Overloads

ReplaceTokens(String, IDictionary<String,String>)

Replaces the tokens in the template with the provided values.

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

Replaces the tokens in the template with the provided values and route token transformer.

ReplaceTokens(String, IDictionary<String,String>)

Source:
AttributeRouteModel.cs
Source:
AttributeRouteModel.cs
Source:
AttributeRouteModel.cs

Replaces the tokens in the template with the provided values.

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

Parameters

template
String

The template.

values
IDictionary<String,String>

The token values to use.

Returns

A new string with the replaced values.

Applies to

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

Source:
AttributeRouteModel.cs
Source:
AttributeRouteModel.cs

Replaces the tokens in the template with the provided values and route token transformer.

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

Parameters

template
String

The template.

values
IDictionary<String,String>

The token values to use.

routeTokenTransformer
IOutboundParameterTransformer

The route token transformer.

Returns

A new string with the replaced values.

Applies to