ArcGIS Pro 2.6 API Reference Guide
FromBinaryXML Method
Example 

ArcGIS.Core.Geometry Namespace > MultipatchBuilder Class : FromBinaryXML Method
Binary XML string representation of Multipatch.
Creates a new instance of a Multipatch class from a binary XML string representation.
Syntax
public static Multipatch FromBinaryXML( 
   string XMLString
)
Public Shared Function FromBinaryXML( _
   ByVal XMLString As String _
) As Multipatch

Parameters

XMLString
Binary XML string representation of Multipatch.

Return Value

Exceptions
ExceptionDescription
The XMLString is empty or null.
XML is invalid or does not represent a multipatch string.
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, Windows 7

See Also

Reference

MultipatchBuilder Class
MultipatchBuilder Members