ArcGIS Pro 2.8 API Reference Guide
CopyMetadataFromItem Method (Item)
Example 

ArcGIS.Desktop.Core Namespace > Item Class : CopyMetadataFromItem Method
Copy metadata from Item. This method must be called on the MCT. Use QueuedTask.Run.
Syntax
public void CopyMetadataFromItem( 
   Item sourceItem
)
Public Sub CopyMetadataFromItem( _
   ByVal sourceItem As Item _
) 

Parameters

sourceItem
Exceptions
ExceptionDescription
This method or property must be called within the lambda passed to QueuedTask.Run.
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

Item Class
Item Members