ArcGIS Pro 3.1 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 static void PinProjectTemplate( 
       string path
    )
    Public Shared Sub PinProjectTemplate( _
       ByVal path As String _
    ) 

    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