Method SetAttributeValue
SetAttributeValue(String, Object)
Looks up attribute by name and updates attribute to the specified value.
Declaration
public void SetAttributeValue(string attributeName, object attributeValue)Parameters
| Type | Name | Description | 
|---|---|---|
| System.String | attributeName | The name of the attribute. | 
| 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 - 100.15 | 
| .NET 6.0 | 100.13 - 100.15 | 
| .NET 6.0 Windows | 100.13 - 100.15 | 
| .NET Framework | 100.0 - 100.15 | 
| .NET 5 | 100.10 - 100.12 | 
| .NET Core 3.1 | 100.7 - 100.12 | 
| Xamarin.Android | 100.0 - 100.15 | 
| Xamarin.iOS | 100.0 - 100.15 | 
| UWP | 100.0 - 100.14 | 
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. | 
| 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 - 100.15 | 
| .NET 6.0 | 100.13 - 100.15 | 
| .NET 6.0 Windows | 100.13 - 100.15 | 
| .NET Framework | 100.0 - 100.15 | 
| .NET 5 | 100.10 - 100.12 | 
| .NET Core 3.1 | 100.7 - 100.12 | 
| Xamarin.Android | 100.0 - 100.15 | 
| Xamarin.iOS | 100.0 - 100.15 | 
| UWP | 100.0 - 100.14 |