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
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
Target | Versions |
---|---|
.NET Standard 2.0 | 100.3 - 200.5 |
.NET | 100.13 - 200.5 |
.NET Windows | 100.13 - 200.5 |
.NET Android | 200.0 - 200.5 |
.NET iOS | 200.0 - 200.5 |
.NET Framework | 100.0 - 200.5 |
Xamarin.Android | 100.0 - 100.15 |
Xamarin.iOS | 100.0 - 100.15 |
UWP | 100.0 - 200.5 |