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

ArcGIS.Desktop.Core Namespace > Item Class : SaveMetadataAsUsingCustomXSLT Method
Save the metadata of the current item using customized XSLT. This method must be called on the MCT. Use QueuedTask.Run.
Syntax
public void SaveMetadataAsUsingCustomXSLT( 
   string customXSLTFilePath,
   string outputFilePath
)
Public Sub SaveMetadataAsUsingCustomXSLT( _
   ByVal customXSLTFilePath As String, _
   ByVal outputFilePath As String _
) 

Parameters

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

Item Class
Item Members