ArcGIS Pro 2.7 API Reference Guide
UpgradeMetadata Method (Item)
Example 

ArcGIS.Desktop.Core Namespace > Item Class : UpgradeMetadata Method
Upgrade the metadata of the current item. This method must be called on the MCT. Use QueuedTask.Run.
Syntax
public void UpgradeMetadata( 
   MDUpgradeOption upgradeOption
)
Public Sub UpgradeMetadata( _
   ByVal upgradeOption As MDUpgradeOption _
) 

Parameters

upgradeOption
Exceptions
ExceptionDescription
This method or property must be called within the lambda passed to QueuedTask.Run.
Example
var fgdcItem = ItemFactory.Instance.Create(@"C:\projectAlpha\GDBs\testData.gdb");
await QueuedTask.Run(() => fgdcItem.UpgradeMetadata(MDUpgradeOption.esriUpgradeFgdcCsdgm));
Requirements

Target Platforms: Windows 10, Windows 8.1

See Also

Reference

Item Class
Item Members