ArcGIS Pro 2.7 API Reference Guide
CreateGeometryBag(GeometryBag,SpatialReference) Method

ArcGIS.Core.Geometry Namespace > GeometryBagBuilder Class > CreateGeometryBag Method : CreateGeometryBag(GeometryBag,SpatialReference) Method
The GeometryBag to create the GeometryBag.
(Optional) The SpatialReference. The default value is null. If spatialReference is null, then the spatial reference will be inherited from geometryBag.
Convenience method to create a new instance of the GeometryBag class.
Syntax
Public Overloads Shared Function CreateGeometryBag( _
   ByVal geometryBag As GeometryBag, _
   Optional ByVal spatialReference As SpatialReference _
) As GeometryBag

Parameters

geometryBag
The GeometryBag to create the GeometryBag.
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 10, Windows 8.1

See Also

Reference

GeometryBagBuilder Class
GeometryBagBuilder Members
Overload List