ArcGIS Pro 3.8 API Reference Guide
ArcGIS.Desktop.Core Namespace / IMetadata Interface / ImportMetadata Method / ImportMetadata(String,MDImportExportOption,String) Method
Example

In This Topic
    ImportMetadata(String,MDImportExportOption,String) Method
    In This Topic
    Import metadata
    Syntax

    Parameters

    catalogPathOrMDUri
    importType
    styleSheetPath

    Return Value

    void
    Example
    Item: Updates metadata with the imported metadata: ImportMetadata
    {
      // the input path can be the path to an item with metadata, or a URI to an XML file
      await QueuedTask.Run(() => metadataItemImport.ImportMetadata(
        @"E:\YellowStone.gdb\MyDataset\MyFeatureClass", MDImportExportOption.esriCustomizedStyleSheet,
        @"E:\StyleSheets\Import\MyImportStyleSheet.xslt"));
    }
    Requirements

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

    ArcGIS Pro version: 3.0 or higher.
    See Also