ArcGIS Pro 3.3 API Reference Guide
ArcGIS.Desktop.Core Namespace / Item Class / UpgradeMetadata Method
Example

In This Topic
    UpgradeMetadata Method (Item)
    In This Topic
    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
    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