ArcGIS Pro 2.6 API Reference Guide
ToEsriShape(Byte[]) Method

ArcGIS.Core.Geometry Namespace > GeometryBag Class > ToEsriShape Method : ToEsriShape(Byte[]) Method
The buffer to which the geometry will be written. The buffer must be large enough to hold the Esri shapefile formatted version of the input geometry.
Converts this GeometryBag into an Esri shape formatted binary byte buffer and return the size of the shapeBuffer.
Syntax
public override long ToEsriShape( 
   ref byte[] shapeBuffer
)
Public Overloads Overrides NotOverridable Function ToEsriShape( _
   ByRef shapeBuffer As Byte() _
) As Long

Parameters

shapeBuffer
The buffer to which the geometry will be written. The buffer must be large enough to hold the Esri shapefile formatted version of the input geometry.

Return Value

The number of bytes used to store this instance in the input shapeBuffer.
Exceptions
ExceptionDescription
The method is not implemented for GeometryBag.
Requirements

Target Platforms: Windows 10, Windows 8.1, Windows 7

See Also

Reference

GeometryBag Class
GeometryBag Members
Overload List