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

In This Topic
    SaveMetadataAsHTML Method (IMetadata)
    In This Topic
    Save the metadata of the current item as HTML
    Syntax
    Sub SaveMetadataAsHTML( _
       ByVal outputFilePath As String, _
       ByVal outputType As MDSaveAsHTMLOption _
    ) 
    void SaveMetadataAsHTML( 
       string outputFilePath,
       MDSaveAsHTMLOption outputType
    )

    Parameters

    outputFilePath
    outputType

    Return Value

    void
    Example
    Item: Save the metadata of the current item as HTML: SaveMetadataAsHTML
    {
      // Note: Needs QueuedTask to run
      metadataItemToSaveAsHTML.SaveMetadataAsHTML(@"E:\Temp\OutputHTML.htm", MDSaveAsHTMLOption.esriCurrentMetadataStyle);
    }
    Requirements

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

    ArcGIS Pro version: 3.0 or higher.
    See Also