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