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
| Target | Versions |
|---|---|
| .NET | 300 |
| .NET Windows | 300 |
| .NET Android | 300 |
| .NET iOS | 300 |