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

ArcGIS.Desktop.Core Namespace > IMetadata Interface > ImportMetadata Method : ImportMetadata(String,MDImportExportOption,String) Method
Import metadata
Syntax

Parameters

catalogPathOrMDUri
importType
styleSheetPath

Return Value

void
Example
// the input path can be the path to an item with metadata, or a URI to an XML file
IMetadata metadataItemImport1 = null;
await QueuedTask.Run(() => metadataItemImport1.ImportMetadata(@"E:\YellowStone.gdb\MyDataset\MyFeatureClass", MDImportExportOption.esriCurrentMetadataStyle));
Requirements

Target Platforms: Windows 10, Windows 8.1, Windows 7

See Also

Reference

IMetadata Interface
IMetadata Members
Overload List