Method EvaluateAsync
EvaluateAsync(IEnumerable<KeyValuePair<String, Nullable<Object>>>)
Evaluates the script using the supplied profile variables.
Declaration
public Task<ArcadeEvaluationResult> EvaluateAsync(IEnumerable<KeyValuePair<string, object?>> profileVariables)
Parameters
Type | Name | Description |
---|---|---|
IEnumerable<Key |
profileVariables | The profile variables for the script as a collection of key/value pairs. |
Returns
Type | Description |
---|---|
Task<Arcade |
A task object representing the asynchronous evaluation of an Arcade script.
The value of the task result is a Arcade |
Remarks
Each entry of the profile variables dictionary is placed into the
interpreter as a value accessible throughout the script. The
name and type of these should comply with
the profile the Arcade
Each value of a key/value pair in the dictionary is converted to a type understood by the interpreter.
Values in the dictionary can be any of the following runtime types:
. - Numbers, integer and floating point types of various sizes. Arcade uses doubles for all internal calculations.
- Boolean.
. . - Geometry.
- Geo
Element (or anything derived from it such as Feature). - Feature
Table . , to supported types. - Geodatabase.
- Service
Geodatabase . - Geo
Model (or anything derived from it such as Map or Scene). - Location.
To be explicit on the conversions of compound types.
- Geo
Element types are converted to an Arcade Feature type. - Location is converted to an Arcade Feature type.
- Feature
Table types are converted to an Arcade FeatureSet type. - Geodatabase is converted to Arcade FeatureSetCollection type.
- Geo
Model is converted to an Arcade FeatureSetCollection type.
Applies to
Platforms and versions
Target | Versions |
---|---|
UWP | 100.15 |