Show / Hide Table of Contents

Method GetAttributesAsync

GetAttributesAsync(string, FeatureTable)

Returns a collection of attributes used in the script for a given profile variable.

Declaration
public Task<IReadOnlyList<string>> GetAttributesAsync(string variableName, FeatureTable attributeNameSource)
Parameters
Type Name Description
string variableName

The name of the profile variable whose used attributes are required.

FeatureTable attributeNameSource

A FeatureTable from which a list of all attribute names for the profile variable.

Returns
Type Description
Task<IReadOnlyList<string>>

A task object representing the asynchronous retrieval of the attributes looked up on a profile variable in the script. The value of the task result is a collection of string objects.

Remarks

To fully support the wildcard expansion in the Expects statement, calculation of used attributes on a profile variable requires an object that can supply a full set of attribute names.

This function represents the best attempt to find all required attributes to evaluate the script. In some cases, an ambiguous or undetermined attribute reference may render this collection incomplete. If the script has undetermined attribute references, HasUndeterminedAttributeReferences(string) returns true.

Exceptions
Type Condition
ArgumentNullException

variableName or attributeNameSource is null.

See Also
HasUndeterminedAttributeReferences(string)

Applies to

Platforms and versions
TargetVersions
.NET Standard 2.0100.14 - 200.8
.NET100.14 - 300.0
.NET Windows100.14 - 300.0
.NET Android200.0 - 300.0
.NET iOS200.0 - 300.0
.NET Framework100.14 - 200.8
Xamarin.Android100.14 - 100.15
Xamarin.iOS100.14 - 100.15
UWP100.14 - 200.8

GetAttributesAsync(string, GeoElement)

Returns a collection of attributes used in the script for a given profile variable.

Declaration
public Task<IReadOnlyList<string>> GetAttributesAsync(string variableName, GeoElement attributeNameSource)
Parameters
Type Name Description
string variableName

The name of the profile variable whose used attributes are required.

GeoElement attributeNameSource

A GeoElement from which a list of all attribute names for the profile variable can be obtained.

Returns
Type Description
Task<IReadOnlyList<string>>

A task object representing the asynchronous retrieval of the attributes looked up on a profile variable in the script. The value of the task result is a collection of string objects.

Remarks

To fully support the wildcard expansion in the Expects statement, calculation of used attributes on a profile variable requires an object that can supply a full set of attribute names.

This function represents the best attempt to find all required attributes to evaluate the script. In some cases, an ambiguous or undetermined attribute reference may render this collection incomplete. If the script has undetermined attribute references, HasUndeterminedAttributeReferences(string) returns true.

Exceptions
Type Condition
ArgumentNullException

variableName or attributeNameSource is null.

See Also
HasUndeterminedAttributeReferences(string)

Applies to

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