ArcGIS Pro 2.8 API Reference Guide
Synchronize Method (Item)
Example 

ArcGIS.Desktop.Core Namespace > Item Class : Synchronize Method
Updates metadata with the current properties of the item. Metadata is created for the item if it doesn't already exist. This method must be called on the MCT. Use QueuedTask.Run.
Syntax
public string Synchronize()
Public Function Synchronize() As String

Return Value

Metadata xml string
Exceptions
ExceptionDescription
This method or property must be called within the lambda passed to QueuedTask.Run.
Example
string syncedMetadataXml = string.Empty;
await QueuedTask.Run(() => syncedMetadataXml = metadataItemToSync.Synchronize());
Requirements

Target Platforms: Windows 10, Windows 8.1

See Also

Reference

Item Class
Item Members