ArcGIS Pro 3.4 API Reference Guide
ArcGIS.Desktop.Core Namespace / Item Class / SaveMetadataAsUsingCustomXSLT Method
Example Version

SaveMetadataAsUsingCustomXSLT Method (Item)
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
)

Parameters

customXSLTFilePath
outputFilePath
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 using customized XSLT: SaveMetadataAsUsingCustomXSLT
await QueuedTask.Run(() => metadataItemToSaveAsUsingCustomXSLT.SaveMetadataAsUsingCustomXSLT(@"E:\Data\Metadata\CustomXSLT.xsl", @"E:\Temp\OutputXMLCustom.xml"));
Requirements

Target Platforms: Windows 11, Windows 10

ArcGIS Pro version: 3 or higher.
See Also