ArcGIS Pro 2.7 API Reference Guide
ToEsriShape() Method
Example 

ArcGIS.Core.Geometry Namespace > Multipatch Class > ToEsriShape Method : ToEsriShape() Method
Converts this Multipatch into an Esri shape formatted binary byte buffer.
Syntax
public override byte[] ToEsriShape()
Public Overloads Overrides NotOverridable Function ToEsriShape() As Byte()

Return Value

The geometry as a formatted binary byte buffer.
Example
// export to binary xml
string binaryXml = multiPatch.ToBinaryXML();

// import from binaryXML - methods need to run on the MCT
Multipatch binaryMultipatch = MultipatchBuilder.FromBinaryXML(binaryXml);

// xml export / import
string xml = multiPatch.ToXML();
Multipatch xmlMultipatch = MultipatchBuilder.FromXML(xml);

// esriShape export/import
byte[] buffer = multiPatch.ToEsriShape();
Multipatch esriPatch = MultipatchBuilder.FromEsriShape(buffer);

// or use GeometryEngine
Multipatch patchImport = GeometryEngine.Instance.ImportFromEsriShape(EsriShapeImportFlags.esriShapeImportDefaults, buffer, multiPatch.SpatialReference) as Multipatch;
Requirements

Target Platforms: Windows 10, Windows 8.1

See Also

Reference

Multipatch Class
Multipatch Members
Overload List