Show / Hide Table of Contents

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
TargetVersions
.NET Standard 2.0100.3 - 200.8
.NET100.13 - 200.8
.NET Windows100.13 - 200.8
.NET Android200.2 - 200.8
.NET iOS200.0 - 200.8
.NET Framework100.0 - 200.8
Xamarin.Android100.0 - 100.14
Xamarin.iOS100.0 - 100.15
UWP100.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
TargetVersions
.NET Standard 2.0100.3 - 200.8
.NET100.13 - 200.8
.NET Windows100.13 - 200.8
.NET Android200.2 - 200.8
.NET iOS200.0 - 200.8
.NET Framework100.0 - 200.8
Xamarin.Android100.0 - 100.14
Xamarin.iOS100.0 - 100.15
UWP100.0 - 200.8
In This Article
Back to top Copyright © 2022 Esri.