ArcGIS Pro 3.7 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
    Function Synchronize() As String
    string Synchronize()

    Return Value

    Metadata xml string
    Example
    Item: Updates metadata with the current properties of the item: Synchronize
    {
      string syncedMetadataXml = string.Empty;
      // Note: Needs QueuedTask to run
      syncedMetadataXml = metadataItemToSync.Synchronize();
    }
    Requirements

    Target Platforms: Windows 11 Home, Pro, Enterprise (64 bit)

    ArcGIS Pro version: 3.0 or higher.
    See Also