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

ArcGIS.Desktop.Core Namespace > IMetadata Interface : UpgradeMetadata Method
Upgrade the metadata of the current item
Syntax
void UpgradeMetadata( 
   MDUpgradeOption upgradeOption
)
Sub UpgradeMetadata( _
   ByVal upgradeOption As MDUpgradeOption _
) 

Parameters

upgradeOption

Return Value

void
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

IMetadata Interface
IMetadata Members