Method Substitute
Substitute(String)
Substitutes attribute values for attribute place-holders in a given template string.
Declaration
public string Substitute(string templateString)
Parameters
Type | Name | Description |
---|---|---|
System.String | templateString | The template string. |
Returns
Type | Description |
---|---|
System.String | Formatted string |
Remarks
If Expressions is not empty, the input string may be using expressions with Arcade FeatureSet functions. Use EvaluateExpressionsAsync() to evaluate the Arcade expressions before trying to get the substitute System.String, otherwise it may return an empty string.
Applies to
Platforms and versions
Target | Versions |
---|---|
.NET Standard 2.0 | 100.3 - 100.15 |
.NET 6.0 | 100.13 - 100.15 |
.NET 6.0 Windows | 100.13 - 100.15 |
.NET Framework | 100.2.1 - 100.15 |
.NET 5 | 100.10 - 100.12 |
.NET Core 3.1 | 100.7 - 100.12 |
Xamarin.Android | 100.2.1 - 100.15 |
Xamarin.iOS | 100.2.1 - 100.15 |
UWP | 100.2.1 - 100.15 |