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
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
TargetVersions
.NET Standard 2.0100.3 - 200.8
.NET100.13 - 300.0
.NET Windows100.13 - 300.0
.NET Android200.2 - 300.0
.NET iOS200.0 - 300.0
.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.

object attributeValue

Value to be set on the attribute. See Attributes for details on acceptable values.

Exceptions
Type Condition
ArgumentNullException

field

Applies to

Platforms and versions
TargetVersions
.NET Standard 2.0100.3 - 200.8
.NET100.13 - 300.0
.NET Windows100.13 - 300.0
.NET Android200.2 - 300.0
.NET iOS200.0 - 300.0
.NET Framework100.0 - 200.8
Xamarin.Android100.0 - 100.14
Xamarin.iOS100.0 - 100.15
UWP100.0 - 200.8
In this article
Provide feedback
Back to top Copyright © 2025 Esri.