Method EvaluateAsync
EvaluateAsync(IEnumerable<KeyValuePair<String, Object>>)
Evaluates the script using the supplied profile variables.
Declaration
public Task<ArcadeEvaluationResult> EvaluateAsync(IEnumerable<KeyValuePair<string, object>> profileVariables)
Parameters
Type | Name | Description |
---|---|---|
System. |
profileVariables | The profile variables for the script as a collection of key/value pairs. |
Returns
Type | Description |
---|---|
System. |
A task object representing the asynchronous evaluation of an Arcade script.
The value of the task result is an 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 types:
- System.
String . - Numbers, integer and floating point types of various sizes. Arcade uses doubles for all internal calculations.
- Boolean.
- System.
Date .Time - System.
Date .Only - System.
Time .Only - System.
Date .Time Offset - Geometry.
- Geo
Element (or anything derived from it such as Feature). - Feature
Table . - System.Collections.Generic.Dictionary<TKey, TValue>, System.
String 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.
- Service
Geodatabase is converted to Arcade FeatureSetCollection type. - Geo
Model is converted to an Arcade FeatureSetCollection type.
Exceptions
Type | Condition |
---|---|
System. |
Applies to
Platforms and versions
Target | Versions |
---|---|
.NET Standard 2.0 | 100.14 - 200.6 |
.NET | 100.14 - 200.6 |
.NET Windows | 100.14 - 200.6 |
.NET Android | 200.2 - 200.6 |
.NET iOS | 200.0 - 200.6 |
.NET Framework | 100.14 - 200.6 |
Xamarin.Android | 100.14 |
Xamarin.iOS | 100.14 - 100.15 |
UWP | 100.14 - 200.6 |