ArcGIS Pro 3.0 API Reference Guide
ArcGIS.Desktop.Core Namespace / IMetadata Interface / ExportMetadata Method / ExportMetadata(String,MDImportExportOption,MDExportRemovalOption,String) Method
Example

In This Topic
    ExportMetadata(String,MDImportExportOption,MDExportRemovalOption,String) Method
    In This Topic
    Export metadata
    Syntax

    Parameters

    outputFilePath
    exportType
    removalOption
    styleSheetPath

    Return Value

    void
    Example
    Item: export the metadata of the currently selected item: ExportMetadata
    await QueuedTask.Run(() => metadataItemExport1.ExportMetadata(@"E:\Temp\OutputXML.xml", MDImportExportOption.esriCurrentMetadataStyle, MDExportRemovalOption.esriExportExactCopy));
    
    Item: export the metadata of the currently selected item: ExportMetadata
    await QueuedTask.Run(() => metadataItemExport1.ExportMetadata(@"E:\Temp\OutputXML.xml", MDImportExportOption.esriCurrentMetadataStyle, MDExportRemovalOption.esriExportExactCopy));
    
    Requirements

    Target Platforms: Windows 11, Windows 10, Windows 8.1

    See Also