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 async Task<IReadOnlyList<string>> GetAttributesAsync(string variableName, FeatureTable attributeNameSource)
Parameters
Type Name Description
System.String variableName

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

FeatureTable attributeNameSource

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

Returns
Type Description
System.Threading.Tasks.Task<System.Collections.Generic.IReadOnlyList<System.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 System.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.

Exceptions
Type Condition
System.ArgumentNullException

variableName or attributeNameSource is null.

Applies to

Platforms and versions
TargetVersions
.NET Standard 2.0100.14 - 200.8
.NET100.14 - 200.8
.NET Windows100.14 - 200.8
.NET Android200.0 - 200.8
.NET iOS200.0 - 200.8
.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 async Task<IReadOnlyList<string>> GetAttributesAsync(string variableName, GeoElement attributeNameSource)
Parameters
Type Name Description
System.String variableName

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

GeoElement attributeNameSource

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

Returns
Type Description
System.Threading.Tasks.Task<System.Collections.Generic.IReadOnlyList<System.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 System.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.

Exceptions
Type Condition
System.ArgumentNullException

variableName or attributeNameSource is null.

Applies to

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