ArcGIS Pro 2.7 API Reference Guide
CopyMetadataFromItem Method (IMetadata)
Example 

ArcGIS.Desktop.Core Namespace > IMetadata Interface : CopyMetadataFromItem Method
Copy metadata from Item
Syntax
void CopyMetadataFromItem( 
   Item sourceItem
)
Sub CopyMetadataFromItem( _
   ByVal sourceItem As Item _
) 

Parameters

sourceItem

Return Value

void
Example
Item featureClassItem = ItemFactory.Instance.Create(@"C:\projectAlpha\GDBs\regionFive.gdb\SourceFeatureClass");
await QueuedTask.Run(() => metadataItemImport.CopyMetadataFromItem(featureClassItem));
Requirements

Target Platforms: Windows 10, Windows 8.1

See Also

Reference

IMetadata Interface
IMetadata Members