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

In This Topic
    CreateGeometryBag(GeometryBag,SpatialReference) Method
    In This Topic
    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 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, Windows 8.1

    See Also