Show / Hide Table of Contents

Class FeatureType

Defines the domains and feature templates that are used to create a new feature.

Inheritance
System.Object
FeatureType
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Esri.ArcGISRuntime.Data
Assembly: Esri.ArcGISRuntime.dll
Syntax
public sealed class FeatureType
Remarks

A feature type is used to ensure that appropriate attribute values are captured when a new feature is created. A FeatureType can specify the domains for the attribute values and can provide a template that populates the feature with initial values. For example, a roads layer may contain different types of roads, such as main roads, city streets, and unpaved tracks. The owner could set up a feature type named 'main road' to ensure that new features are only populated with attribute values appropriate for a 'main road', and so on.

The owner of the ArcGIS Feature Service defines the feature types when they publish the service. They are held within the "Types" tag of the ArcGIS feature service's REST Services Directory. Each type has an ID, a name, a set of domains and a set of templates. You can obtain the collection of feature types by using FeatureTypes. Use CreateFeature(FeatureType) to create a feature with the feature type.

If you are building an editing application, you can present users with a list of feature types. Upon choosing a feature type, the app can populate the feature's attribute values with the PrototypeAttributes and ensure that any attributes in the user interface correspond to the Domains.

Properties

Name Description
Domains

Gets the associated Domains with this feature type.

Id

Gets the ID of the feature type.

Name

Gets the name of the feature type.

Templates

Gets a list of FeatureTemplate of the feature type.

Applies to

TargetVersions
.NET Standard 2.0100.3 - 200.7
.NET100.13 - 200.7
.NET Windows100.13 - 200.7
.NET Android200.0 - 200.7
.NET iOS200.0 - 200.7
.NET Framework100.0 - 200.7
Xamarin.Android100.0 - 100.15
Xamarin.iOS100.0 - 100.15
UWP100.0 - 200.7
In This Article
Back to top Copyright © 2022 Esri.