Show / Hide Table of Contents

Method EvaluateExpressionsAsync

EvaluateExpressionsAsync()

Asynchronously evaluates all form expressions.

Declaration
public async Task<IEnumerable<FormExpressionEvaluationException>> EvaluateExpressionsAsync()
Returns
Type Description
System.Threading.Tasks.Task<System.Collections.Generic.IEnumerable<FormExpressionEvaluationException>>

The task object representing the asynchronous evaluation of all contained Arcade expressions.

Remarks

An expression can include Arcade FeatureSet functions, which need to be evaluated asynchronously. Upon completion the task provides a set of FormExpressionEvaluationExceptions providing diagnostic information about errors encountered during evaluation of expressions. An empty list indicates no errors were encountered.

The Elements are fully populated and each placeholder is replaced by its value.

This method must be called before displaying the feature form in a UI so you can use synchronous methods on form elements. It should also be called after every call to UpdateValue(Object), in order to run any expressions which may depend on that value.

This method will load the Feature if it is not already loaded.

Applies to

Platforms and versions
TargetVersions
.NET Standard 2.0200.4 - 200.8
.NET200.4 - 200.8
.NET Windows200.4 - 200.8
.NET Android200.4 - 200.8
.NET iOS200.4 - 200.8
.NET Framework200.4 - 200.8
UWP200.4 - 200.8
In This Article
Back to top Copyright © 2022 Esri.