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

GeometryBagBuilderEx Constructor(IEnumerable<Geometry>,AttributeFlags,SpatialReference)
Creates a new instance of the GeometryBagBuilderEx 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.
Exceptions
ExceptionDescription
geometries is null.
A geometry in geometries is null. You cannot insert a null geometry into a GeometryBag.
A geometry in geometries is GeometryBag. You cannot insert a GeometryBag into another GeometryBag.
Remarks
An Envelope is converted to a Polygon when it is inserted into a GeometryBag. As a result, when retrieving an Envelope from a GeometryBag, it will be a Polygon.
Requirements

Target Platforms: Windows 11, Windows 10, Windows 8.1

ArcGIS Pro version: 3.0 or higher.
See Also