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

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

    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