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

In This Topic
    PinProjectTemplate Method
    In This Topic
    Pins a project template.
    Syntax
    Public Shared Sub PinProjectTemplate( _
       ByVal path As String _
    ) 
    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
    {
      Project.PinProjectTemplate(templatePath);
      Project.UnpinTemplateProject(newTemplatePath);
    }
    Requirements

    Target Platforms: Windows 11 Home, Pro, Enterprise (64 bit)

    ArcGIS Pro version: 3.1 or higher.
    See Also