ArcGIS Pro 3.4 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.

In This Topic
    GeometryBagBuilderEx Constructor(IEnumerable<Geometry>,AttributeFlags,SpatialReference)
    In This Topic
    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 that is inserted into the builder is converted to a Polygon when the GeometryBag is created. As a result, when retrieving an Envelope from a GeometryBag, it will be a Polygon.
    Requirements

    Target Platforms: Windows 11, Windows 10

    ArcGIS Pro version: 3 or higher.
    See Also