ArcGIS Pro 2.8 API Reference Guide
CreatePolygon(IEnumerable<Polygon>,SpatialReference) Method

ArcGIS.Core.Geometry Namespace > PolygonBuilder Class > CreatePolygon Method : CreatePolygon(IEnumerable<Polygon>,SpatialReference) Method
The polygon rings.
(Optional) The SpatialReference. The default value is null. If spatialReference is null, then the spatial reference will be inherited from polygons.
Convenience method to create a new instance of the Polygon class.
Syntax
Public Overloads Shared Function CreatePolygon( _
   ByVal polygons As IEnumerable(Of Polygon), _
   Optional ByVal spatialReference As SpatialReference _
) As Polygon

Parameters

polygons
The polygon rings.
spatialReference
(Optional) The SpatialReference. The default value is null. If spatialReference is null, then the spatial reference will be inherited from polygons.

Return Value

Exceptions
ExceptionDescription
Incompatible spatial references.
polygons is null.
Requirements

Target Platforms: Windows 10, Windows 8.1

See Also

Reference

PolygonBuilder Class
PolygonBuilder Members
Overload List