共用方式為


AttributeRouteModel.ReplaceTokens 方法

定義

多載

ReplaceTokens(String, IDictionary<String,String>)

以提供的值取代範本中的權杖。

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

將範本中的權杖取代為提供的值和路由權杖轉換器。

ReplaceTokens(String, IDictionary<String,String>)

來源:
AttributeRouteModel.cs
來源:
AttributeRouteModel.cs
來源:
AttributeRouteModel.cs

以提供的值取代範本中的權杖。

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

參數

template
String

樣板。

values
IDictionary<String,String>

要使用的權杖值。

傳回

具有已取代值的新字串。

適用於

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

來源:
AttributeRouteModel.cs
來源:
AttributeRouteModel.cs

將範本中的權杖取代為提供的值和路由權杖轉換器。

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

參數

template
String

樣板。

values
IDictionary<String,String>

要使用的權杖值。

routeTokenTransformer
IOutboundParameterTransformer

路由權杖轉換器。

傳回

具有已取代值的新字串。

適用於