ArcGIS Pro 3.4 API Reference Guide
ArcGIS.Core.Geometry Namespace / GeometryBagBuilderEx Class / CreateGeometryBag Method / CreateGeometryBag(IEnumerable<Geometry>,AttributeFlags,SpatialReference) Method
The list of geometries to create the GeometryBag.
(Optional) The SpatialReference. The default value is null. The spatial reference of each geometry is ignored.
Version

CreateGeometryBag(IEnumerable<Geometry>,AttributeFlags,SpatialReference) Method
Convenience method to create a new instance of the GeometryBag class.
Syntax

Parameters

geometries
The list of geometries to create the GeometryBag.
attributeFlags
spatialReference
(Optional) The SpatialReference. The default value is null. The spatial reference of each geometry is ignored.

Return Value

Exceptions
ExceptionDescription
geometries is null.
A geometry in geometries is null. You cannot insert a null geometry into GeometryBag.
A geometry in geometries is GeometryBag. You cannot insert a GeometryBag into another GeometryBag.
Requirements

Target Platforms: Windows 11, Windows 10

ArcGIS Pro version: 3 or higher.
See Also