Show / Hide Table of Contents

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
TargetVersions
.NET Standard 2.0100.3 - 200.7
.NET100.13 - 200.7
.NET Windows100.13 - 200.7
.NET Android200.0 - 200.7
.NET iOS200.0 - 200.7
.NET Framework100.2.1 - 200.7
Xamarin.Android100.2.1 - 100.15
Xamarin.iOS100.2.1 - 100.15
UWP100.2.1 - 200.7
In This Article
Back to top Copyright © 2022 Esri.