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

ArcGIS.Desktop.Core Namespace > IMetadata Interface > ImportMetadata Method : ImportMetadata(String,MDImportExportOption) Method
Import metadata
Syntax
Overloads Sub ImportMetadata( _
   ByVal catalogPathOrMDUri As String, _
   ByVal importType As MDImportExportOption _
) 

Parameters

catalogPathOrMDUri
importType

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

See Also

Reference

IMetadata Interface
IMetadata Members
Overload List