Show / Hide Table of Contents

Class FeatureTemplate

Defines the default attribute values for the fields of a newly created ArcGISFeature and suggests a type of drawing tool to sketch the feature's geometry.

Inheritance
System.Object
FeatureTemplate
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 FeatureTemplate
Remarks

The owner of the ArcGIS feature service can define one or more feature templates when they publish the service. These are held within the "Templates" tag of the ArcGIS feature service's REST Services Directory. Each template has a name, description, suggested drawing tool, and a list of attributes with their initial values (called prototype). You can get the feature service's collection of feature templates from the FeatureTemplates. Alternatively, if you are using a FeatureType, you can get its templates from Templates. Use CreateFeature(FeatureTemplate) to create a feature with the feature template.

If you are building an editing application, you can present users with a list of feature templates. Upon choosing a template, the app can create a feature with the attributes populated with their default values and present geometry sketching tools to match the DrawingTool.

Properties

Name Description
Description

Gets the description of the feature template.

DrawingTool

Gets the type of drawing tool that could be used to draw this feature in an editing application.

Name

Gets the name of the feature template.

PrototypeAttributes

Gets the default attribute values used when creating a Feature

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.