ArcGIS Pro 2.6 API Reference Guide
FromEsriShape Method (GeometryBuilder<T>)

ArcGIS.Core.Geometry Namespace > GeometryBuilder<T> Class : FromEsriShape Method
Esri shape buffer representation of the geometry.
(Optional)The spatial reference of the geometry.
Creates a geometry from an Esri shape buffer.
Syntax
protected static Geometry FromEsriShape( 
   byte[] esriShapeBuffer,
   SpatialReference spatialReference
)
Protected Shared Function FromEsriShape( _
   ByVal esriShapeBuffer() As Byte, _
   Optional ByVal spatialReference As SpatialReference _
) As Geometry

Parameters

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

Return Value

A Geometry. The GeometryType is based on the >Esri shape buffer.
Exceptions
ExceptionDescription
The esriShapeBuffer is null.
The esriShapeBuffer is invalid Esri shape buffer or the wrong type for the geometry builder.
Requirements

Target Platforms: Windows 10, Windows 8.1, Windows 7

See Also

Reference

GeometryBuilder<T> Class
GeometryBuilder<T> Members