ArcGIS Pro 2.8 API Reference Guide
FromEsriShape Method (PolygonBuilderEx)

ArcGIS.Core.Geometry Namespace > PolygonBuilderEx 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 new static Polygon FromEsriShape( 
   byte[] esriShapeBuffer,
   SpatialReference spatialReference
)
Public Shared Shadows 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

See Also

Reference

PolygonBuilderEx Class
PolygonBuilderEx Members