ArcGIS Pro 2.6 API Reference Guide
ExportMetadata(String,MDImportExportOption,MDExportRemovalOption) Method
Example 

ArcGIS.Desktop.Core Namespace > IMetadata Interface > ExportMetadata Method : ExportMetadata(String,MDImportExportOption,MDExportRemovalOption) Method
Export metadata
Syntax

Parameters

outputFilePath
exportType
removalOption

Return Value

void
Example
await QueuedTask.Run(() => metadataItemExport1.ExportMetadata(@"E:\Temp\OutputXML.xml",  MDImportExportOption.esriCurrentMetadataStyle, MDExportRemovalOption.esriExportExactCopy));
Requirements

Target Platforms: Windows 10, Windows 8.1, Windows 7

See Also

Reference

IMetadata Interface
IMetadata Members
Overload List