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 - 200.6 |
.NET | 100.13 - 200.6 |
.NET Windows | 100.13 - 200.6 |
.NET Android | 200.0 - 200.6 |
.NET iOS | 200.0 - 200.6 |
.NET Framework | 100.2.1 - 200.6 |
Xamarin.Android | 100.2.1 - 100.15 |
Xamarin.iOS | 100.2.1 - 100.15 |
UWP | 100.2.1 - 200.6 |