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 |
|
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.0 - 200.6 |
.NET iOS | 200.0 - 200.6 |
.NET Framework | 100.14 - 200.6 |
Xamarin.Android | 100.14 - 100.15 |
Xamarin.iOS | 100.14 - 100.15 |
UWP | 100.14 - 200.6 |
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 |
|
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.0 - 200.6 |
.NET iOS | 200.0 - 200.6 |
.NET Framework | 100.14 - 200.6 |
Xamarin.Android | 100.14 - 100.15 |
Xamarin.iOS | 100.14 - 100.15 |
UWP | 100.14 - 200.6 |