ArcGIS Pro 3.4 API Reference Guide
ArcGIS.Core.Geometry Namespace / GeometryBagBuilderEx Class / CreateGeometryBag Method / CreateGeometryBag(GeometryBag,SpatialReference) Method
The GeometryBag to copy.
(Optional) The SpatialReference. The default value is null. If spatialReference is null, then the spatial reference will be inherited from geometryBag.
Version

CreateGeometryBag(GeometryBag,SpatialReference) Method
Convenience method to create a new instance of the GeometryBag class.
Syntax

Parameters

geometryBag
The GeometryBag to copy.
spatialReference
(Optional) The SpatialReference. The default value is null. If spatialReference is null, then the spatial reference will be inherited from geometryBag.

Return Value

Exceptions
ExceptionDescription
geometryBag is null.
Requirements

Target Platforms: Windows 11, Windows 10

ArcGIS Pro version: 3 or higher.
See Also