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

In This Topic
    UpgradeMetadata Method (IMetadata)
    In This Topic
    Upgrade the metadata of the current item
    Syntax
    Sub UpgradeMetadata( _
       ByVal upgradeOption As MDUpgradeOption _
    ) 
    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");
      // Note: Needs QueuedTask to run
      fgdcItem.UpgradeMetadata(MDUpgradeOption.esriUpgradeFgdcCsdgm);
    }
    Requirements

    Target Platforms: Windows 11 Home, Pro, Enterprise (64 bit)

    ArcGIS Pro version: 3.0 or higher.
    See Also