ArcGIS Pro 3.4 API Reference Guide
ArcGIS.Desktop.Core Namespace / Project Class / PinProjectTemplate Method
The path of the project template entry to be pinned.
Example Version

PinProjectTemplate Method
Pins a project template.
Syntax
public static void PinProjectTemplate( 
   string path
)

Parameters

path
The path of the project template entry to be pinned.
Remarks
If the project template exists in the recent project template list, it is removed from this list and added to the pinned project template list.
Example
Pin / UnPin Project Templates
ArcGIS.Desktop.Core.Project.PinProjectTemplate(templatePath);
ArcGIS.Desktop.Core.Project.UnpinTemplateProject(templatePath2);
Requirements

Target Platforms: Windows 11, Windows 10

ArcGIS Pro version: 3.1 or higher.
See Also