ArcGIS Pro 3.7 API Reference Guide
ArcGIS.Desktop.Core Namespace / Item Class / SaveMetadataAsHTML Method
Example

In This Topic
    SaveMetadataAsHTML Method (Item)
    In This Topic
    Save the metadata of the current item as HTML. This method must be called on the MCT. Use QueuedTask.Run.
    Syntax
    Public Sub SaveMetadataAsHTML( _
       ByVal outputFilePath As String, _
       ByVal outputType As MDSaveAsHTMLOption _
    ) 
    public void SaveMetadataAsHTML( 
       string outputFilePath,
       MDSaveAsHTMLOption outputType
    )

    Parameters

    outputFilePath
    outputType
    Exceptions
    ExceptionDescription
    This method or property must be called within the lambda passed to QueuedTask.Run.
    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