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

ArcGIS.Desktop.Core Namespace > IMetadata Interface : SaveMetadataAsUsingCustomXSLT Method
Save the metadata of the current item using customized XSLT
Syntax
void SaveMetadataAsUsingCustomXSLT( 
   string customXSLTFilePath,
   string outputFilePath
)
Sub SaveMetadataAsUsingCustomXSLT( _
   ByVal customXSLTFilePath As String, _
   ByVal outputFilePath As String _
) 

Parameters

customXSLTFilePath
outputFilePath

Return Value

void
Example
await QueuedTask.Run(() => metadataItemToSaveAsUsingCustomXSLT.SaveMetadataAsUsingCustomXSLT(@"E:\Data\Metadata\CustomXSLT.xsl", @"E:\Temp\OutputXMLCustom.xml"));
Requirements

Target Platforms: Windows 10, Windows 8.1

See Also

Reference

IMetadata Interface
IMetadata Members