Show / Hide Table of Contents

Class Feature

Represents a real-world object on a map.

Inheritance
Object
GeoElement
Feature
ArcGISFeature
Implements
INotifyPropertyChanged
GeoElement.Attributes
Object.Equals(Object)
Object.Equals(Object, Object)
Object.GetHashCode()
Object.GetType()
Object.MemberwiseClone()
Object.ReferenceEquals(Object, Object)
Object.ToString()
Namespace: Esri.ArcGISRuntime.Data
Assembly: Esri.ArcGISRuntime.dll
Syntax
public class Feature : GeoElement, INotifyPropertyChanged
Remarks

A feature is persisted in a FeatureTable in a data store (such as a database or service) or in a map. Features in the same data store or feature layer have a common attribute schema.

Properties

Name Description
FeatureTable

Gets the FeatureTable that this feature belongs to

Geometry

Gets or sets the Geometry of the feature.

Methods

Name Description
GetAttributeValue(Field)

Looks up attribute by Field and returns its current value.

GetAttributeValue(String)

Looks up attribute by name and returns its current value.

Refresh()

Resets the attributes and geometry to the values in the data source.

SetAttributeValue(Field, Object)

Looks up attribute by Field and updates attribute to the specified value.

SetAttributeValue(String, Object)

Looks up attribute by name and updates attribute to the specified value.

Name Description
INotifyPropertyChanged.PropertyChanged

Occurs when a property value changes.

Applies to

TargetVersions
.NET Standard 2.0100.3 - 200.0
.NET 6.0100.13 - 200.0
.NET 6.0 Windows100.13 - 200.0
.NET 6.0 Android200
.NET 6.0 iOS200
.NET Framework100.0 - 200.0
.NET 5100.10 - 100.12
.NET Core 3.1100.7 - 100.12
Android100.0 - 100.15
iOS100.0 - 100.15
UWP100.0 - 200.0

Relevant samples

Add features: Add features to a feature layer.
In This Article
Back to top Copyright © 2022 Esri.