Show / Hide Table of Contents

Constructor ArcadeExpression

ArcadeExpression(String)

Initializes a new instance of the ArcadeExpression class with an expression script.

Declaration
public ArcadeExpression(string expression)
Parameters
Type Name Description
System.String expression

The expression to be evaluated. If set to an empty expression string then the evaluation will return null.

Remarks

The Title and Name will default to empty strings. The ReturnType will default to Automatic.

Applies to

Platforms and versions
TargetVersions
.NET Standard 2.0100.11 - 200.7
.NET100.13 - 200.7
.NET Windows100.13 - 200.7
.NET Android200.0 - 200.7
.NET iOS200.0 - 200.7
.NET Framework100.11 - 200.7
Xamarin.Android100.11 - 100.15
Xamarin.iOS100.11 - 100.15
UWP100.11 - 200.7

ArcadeExpression(String, String, String)

Initializes a new instance of the ArcadeExpression class with an expression string, title, and name.

Declaration
public ArcadeExpression(string expression, string title, string name)
Parameters
Type Name Description
System.String expression

The expression to be evaluated. If set to an empty expression string then the evaluation will return null.

System.String title

The title of the expression.

System.String name

The name of the expression.

Remarks

The ReturnType will default to Automatic.

Applies to

Platforms and versions
TargetVersions
.NET Standard 2.0100.11 - 200.7
.NET100.13 - 200.7
.NET Windows100.13 - 200.7
.NET Android200.0 - 200.7
.NET iOS200.0 - 200.7
.NET Framework100.11 - 200.7
Xamarin.Android100.11 - 100.15
Xamarin.iOS100.11 - 100.15
UWP100.11 - 200.7

ArcadeExpression(String, String, String, ArcadeExpressionReturnType)

Initializes a new instance of the ArcadeExpression class with an expression string, title, name, and return type.

Declaration
public ArcadeExpression(string expression, string title, string name, ArcadeExpressionReturnType returnType)
Parameters
Type Name Description
System.String expression

The Arcade expression to be evaluated. If set to an empty expression string then the evaluation will return zero, false, an empty string, or null, depending on whether the returnType is Number, Boolean, String or anything else, respectively.

System.String title

The title of the expression.

System.String name

The name of the expression.

ArcadeExpressionReturnType returnType

The type to cast the evaluated value to.

Remarks

If the Arcade expression evaluates to a result which differs from ArcadeExpressionReturnType then the result will be cast to the expected return type. If the cast cannot be carried out, the result will be a type-specific error value. See ArcadeExpressionReturnType for details.

Applies to

Platforms and versions
TargetVersions
.NET Standard 2.0100.11 - 200.7
.NET100.13 - 200.7
.NET Windows100.13 - 200.7
.NET Android200.0 - 200.7
.NET iOS200.0 - 200.7
.NET Framework100.11 - 200.7
Xamarin.Android100.11 - 100.15
Xamarin.iOS100.11 - 100.15
UWP100.11 - 200.7
In This Article
Back to top Copyright © 2022 Esri.