Show / Hide Table of Contents

Method AddFeaturesAsync

AddFeaturesAsync(SharedTemplateFeatureCreationSet, CancellationToken)

Adds a set of features created from a shared template to the database.

Declaration
Task AddFeaturesAsync(SharedTemplateFeatureCreationSet featureCreationSet, CancellationToken cancellationToken = default)
Parameters
Type Name Description
SharedTemplateFeatureCreationSet featureCreationSet

The features created from a shared template.

CancellationToken cancellationToken

A cancellation token that can be used to cancel the operation.

Returns
Type Description
Task

A Task that has no return value.

Remarks

This method adds features into their respective layer or table in the database, along with their related records and utility associations, all within a single transaction.

If the Exception property is null, all features and their associations are added successfully. If not, it reflects the first error encountered, and neither features nor associations are added.

Applies to

Platforms and versions
TargetVersions
.NET300
.NET Windows300
.NET Android300
.NET iOS300
In this article
Provide feedback
Back to top Copyright © 2025 Esri.