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 |
|
See Also
Applies to
Platforms and versions
| Target | Versions |
|---|---|
| .NET Standard 2.0 | 100.14 - 200.8 |
| .NET | 100.14 - 300.0 |
| .NET Windows | 100.14 - 300.0 |
| .NET Android | 200.0 - 300.0 |
| .NET iOS | 200.0 - 300.0 |
| .NET Framework | 100.14 - 200.8 |
| Xamarin.Android | 100.14 - 100.15 |
| Xamarin.iOS | 100.14 - 100.15 |
| UWP | 100.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 |
|
See Also
Applies to
Platforms and versions
| Target | Versions |
|---|---|
| .NET Standard 2.0 | 100.14 - 200.8 |
| .NET | 100.14 - 300.0 |
| .NET Windows | 100.14 - 300.0 |
| .NET Android | 200.0 - 300.0 |
| .NET iOS | 200.0 - 300.0 |
| .NET Framework | 100.14 - 200.8 |
| Xamarin.Android | 100.14 - 100.15 |
| Xamarin.iOS | 100.14 - 100.15 |
| UWP | 100.14 - 200.8 |