Show / Hide Table of Contents

Method EvaluateExpressionsAsync

EvaluateExpressionsAsync()

Asynchronously evaluates all expressions available at Expressions or at PopupExpression. The expression can include Arcade FeatureSet functions, which need to be evaluated asynchronously.

Declaration
public Task<IReadOnlyList<PopupExpressionEvaluation>> EvaluateExpressionsAsync()
Returns
Type Description
Task<IReadOnlyList<PopupExpressionEvaluation>>

A collection of PopupExpressionEvaluation containing the evaluated expressions.

Remarks

Also populates the EvaluatedElements from Elements. During the evaluation, each ExpressionPopupElement is replaced by the PopupElement returned by the Arcade expression and each placeholder is replaced by its value.

This method must be called before displaying the popup information in a UI so you can use synchronous method GetFormattedValue(PopupField) to get the formatted string representation. If there are no Expressions and no popup elements of type ExpressionPopupElement then the result array will be empty.

The PopupExpression may be used in the Fields, Media, Title, and Description.

Applies to

Platforms and versions
TargetVersions
.NET Standard 2.0100.8 - 200.8
.NET100.13 - 300.0
.NET Windows100.13 - 300.0
.NET Android200.0 - 300.0
.NET iOS200.0 - 300.0
.NET Framework100.8 - 200.8
Xamarin.Android100.8 - 100.15
Xamarin.iOS100.8 - 100.15
UWP100.8 - 200.8
In this article
Provide feedback
Back to top Copyright © 2025 Esri.