ArcGIS Pro 2.8 API Reference Guide
FromEsriShape Method (MultipatchBuilder)
Example 

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

Parameters

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

Return Value

Exceptions
ExceptionDescription
The esriShapeBuffer is empty or null.
Esri shape buffer is invalid or does not represent a multipatch.
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

MultipatchBuilder Class
MultipatchBuilder Members