ArcGIS Pro 3.4 API Reference Guide
ArcGIS.Desktop.Core Namespace / IMetadata Interface / UpgradeMetadata Method
Example Version

UpgradeMetadata Method (IMetadata)
Upgrade the metadata of the current item
Syntax
void UpgradeMetadata( 
   MDUpgradeOption upgradeOption
)

Parameters

upgradeOption

Return Value

void
Example
Item: Upgrade the metadata of the current item: UpgradeMetadata
var fgdcItem = ItemFactory.Instance.Create(@"C:\projectAlpha\GDBs\testData.gdb");
await QueuedTask.Run(() => fgdcItem.UpgradeMetadata(MDUpgradeOption.esriUpgradeFgdcCsdgm));
Requirements

Target Platforms: Windows 11, Windows 10

ArcGIS Pro version: 3 or higher.
See Also