ArcGIS Pro 2.6 API Reference Guide
FromEsriShape Method (PolygonBuilder)

ArcGIS.Core.Geometry Namespace > PolygonBuilder Class : FromEsriShape Method
Esri shape buffer representation of Polygon.
(Optional)The spatial reference of the Polygon.
Creates a new instance of a Polygon class from an Esri shape buffer.
Syntax
public static Polygon FromEsriShape( 
   byte[] esriShapeBuffer,
   SpatialReference spatialReference
)
Public Shared Function FromEsriShape( _
   ByVal esriShapeBuffer() As Byte, _
   Optional ByVal spatialReference As SpatialReference _
) As Polygon

Parameters

esriShapeBuffer
Esri shape buffer representation of Polygon.
spatialReference
(Optional)The spatial reference of the Polygon.

Return Value

Exceptions
ExceptionDescription
The esriShapeBuffer is empty or null.
Esri shape buffer is invalid or does not represent a polygon.
Requirements

Target Platforms: Windows 10, Windows 8.1, Windows 7

See Also

Reference

PolygonBuilder Class
PolygonBuilder Members