ArcGIS Pro 2.7 API Reference Guide
Synchronize Method (IMetadata)
Example 

ArcGIS.Desktop.Core Namespace > IMetadata Interface : Synchronize Method
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
string syncedMetadataXml = string.Empty;
await QueuedTask.Run(() => syncedMetadataXml = metadataItemToSync.Synchronize());
Requirements

Target Platforms: Windows 10, Windows 8.1

See Also

Reference

IMetadata Interface
IMetadata Members