Method CreateFeaturesAsync
CreateFeaturesAsync(SharedTemplate, Geometry?, CancellationToken)
Creates a set of features based on the specified shared template and geometry.
Declaration
Task<SharedTemplateFeatureCreationSet> CreateFeaturesAsync(SharedTemplate sharedTemplate, Geometry? geometry, CancellationToken cancellationToken = default)
Parameters
| Type | Name | Description |
|---|---|---|
| SharedTemplate | sharedTemplate | The template that determines the features to create. |
| Geometry | geometry | The geometry from which features are created. |
| CancellationToken | cancellationToken | A cancellation token that can be used to cancel the operation. |
Returns
| Type | Description |
|---|---|
| Task<SharedTemplateFeatureCreationSet> | A Task that, upon successful completion, contains a SharedTemplateFeatureCreationSet representing the features and their utility associations created from the shared template. |
Remarks
The specified SharedTemplate determines the primary feature and its related set of features joined by:
The input geometry is optional if the shared template is for non-spatial tables only.
Otherwise, the input geometry is required to create the:
- spatial feature in a FeatureTemplateDefinition
- primary feature in a GroupTemplateDefinition from which the rest of the parts are built
- features in a PresetTemplateDefinition are moved around this new origin point geometry
With utility network data, if the shared template defines association creation, both the features and their utility associations are returned in the result.
If the Exception property is null, all features, along with their related records and
utility associations, are created successfully.
If not, it reflects the first error encountered, and neither features nor associations are created.
Applies to
Platforms and versions
| Target | Versions |
|---|---|
| .NET | 300 |
| .NET Windows | 300 |
| .NET Android | 300 |
| .NET iOS | 300 |