Method SetAttributeValue
SetAttributeValue(String, Object)
Updates an attribute of the feature with a given value.
Declaration
public void SetAttributeValue(string attributeName, object attributeValue)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | attributeName | The name of the attribute. |
| System.Object | attributeValue | Value to be set on the attribute. See Attributes for details on acceptable values. |
Applies to
Platforms and versions
| Target | Versions |
|---|---|
| .NET Standard 2.0 | 100.3 - 200.8 |
| .NET | 100.13 - 200.8 |
| .NET Windows | 100.13 - 200.8 |
| .NET Android | 200.2 - 200.8 |
| .NET iOS | 200.0 - 200.8 |
| .NET Framework | 100.0 - 200.8 |
| Xamarin.Android | 100.0 - 100.14 |
| Xamarin.iOS | 100.0 - 100.15 |
| UWP | 100.0 - 200.8 |
SetAttributeValue(Field, Object)
Looks up attribute by Field and updates attribute to the specified value.
Declaration
public void SetAttributeValue(Field field, object attributeValue)
Parameters
| Type | Name | Description |
|---|---|---|
| Field | field | The Field that corresponds to the attribute. |
| System.Object | attributeValue | Value to be set on the attribute. See Attributes for details on acceptable values. |
Exceptions
| Type | Condition |
|---|---|
| System.ArgumentNullException | field |
Applies to
Platforms and versions
| Target | Versions |
|---|---|
| .NET Standard 2.0 | 100.3 - 200.8 |
| .NET | 100.13 - 200.8 |
| .NET Windows | 100.13 - 200.8 |
| .NET Android | 200.2 - 200.8 |
| .NET iOS | 200.0 - 200.8 |
| .NET Framework | 100.0 - 200.8 |
| Xamarin.Android | 100.0 - 100.14 |
| Xamarin.iOS | 100.0 - 100.15 |
| UWP | 100.0 - 200.8 |