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

In This Topic
    CreateGeometryBag(IEnumerable<Geometry>,AttributeFlags,SpatialReference) Method
    In This Topic
    Convenience method to create a new instance of the GeometryBag class.
    Syntax
    Public Overloads Shared Function CreateGeometryBag( _
       ByVal geometries As IEnumerable(Of Geometry), _
       ByVal attributeFlags As AttributeFlags, _
       Optional ByVal spatialReference As SpatialReference _
    ) As GeometryBag

    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