ImportMetadata(String,MDImportExportOption) Method
Import metadata. This method must be called on the MCT. Use QueuedTask.Run.
Item: Updates metadata with the imported metadata - the input path can be the path to an item with metadata, or a URI to a XML file: ImportMetadata
// 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));
Target Platforms: Windows 11, Windows 10
ArcGIS Pro version: 3 or higher.