ArcGIS Pro 3.4 API Reference Guide
ArcGIS.Desktop.Core Namespace / IMetadata Interface / CopyMetadataFromItem Method
Example

In This Topic
    CopyMetadataFromItem Method (IMetadata)
    In This Topic
    Copy metadata from Item
    Syntax
    void CopyMetadataFromItem( 
       Item sourceItem
    )
    Sub CopyMetadataFromItem( _
       ByVal sourceItem As Item _
    ) 

    Parameters

    sourceItem

    Return Value

    void
    Example
    Item: Copy metadata from the source item's metadata: CopyMetadataFromItem
    Item featureClassItem = ItemFactory.Instance.Create(@"C:\projectAlpha\GDBs\regionFive.gdb\SourceFeatureClass");
    await QueuedTask.Run(() => metadataItemImport.CopyMetadataFromItem(featureClassItem));
    
    Requirements

    Target Platforms: Windows 11, Windows 10

    ArcGIS Pro version: 3 or higher.
    See Also