ArcGIS Pro 3.2 API Reference Guide
ArcGIS.Desktop.Core Namespace / IMetadata Interface / Synchronize Method
Example Version

    Synchronize Method (IMetadata)
    Updates metadata with the current properties of the item. Metadata is created for the item if it doesn't already exist.
    Syntax
    string Synchronize()

    Return Value

    Metadata xml string
    Example
    Item: Updates metadata with the current properties of the item: Synchronize
    string syncedMetadataXml = string.Empty;
    await QueuedTask.Run(() => syncedMetadataXml = metadataItemToSync.Synchronize());
    
    Requirements

    Target Platforms: Windows 11, Windows 10

    ArcGIS Pro version: 3 or higher.
    See Also