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

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

Parameters

path
The path of the project entry to be pinned.
Remarks
If the project exists in the recent project list, it is removed from this list and added to the pinned project list.
Example
Pin / UnPin Projects
ArcGIS.Desktop.Core.Project.PinProject(projectPath);
ArcGIS.Desktop.Core.Project.UnpinProject(projectPath2);
Requirements

Target Platforms: Windows 11, Windows 10

ArcGIS Pro version: 3.1 or higher.
See Also