ArcGIS Pro 2.7 API Reference Guide
SaveMetadataAsHTML Method (IMetadata)
Example 

ArcGIS.Desktop.Core Namespace > IMetadata Interface : SaveMetadataAsHTML Method
Save the metadata of the current item as HTML
Syntax
void SaveMetadataAsHTML( 
   string outputFilePath,
   MDSaveAsHTMLOption outputType
)
Sub SaveMetadataAsHTML( _
   ByVal outputFilePath As String, _
   ByVal outputType As MDSaveAsHTMLOption _
) 

Parameters

outputFilePath
outputType

Return Value

void
Example
await QueuedTask.Run(() => metadataItemToSaveAsHTML.SaveMetadataAsHTML(@"E:\Temp\OutputHTML.htm", MDSaveAsHTMLOption.esriCurrentMetadataStyle));
Requirements

Target Platforms: Windows 10, Windows 8.1

See Also

Reference

IMetadata Interface
IMetadata Members