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

In This Topic
    PinProject Method
    In This Topic
    Pins a project.
    Syntax
    Public Shared Sub PinProject( _
       ByVal path As String _
    ) 
    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
    {
      Project.PinProject(newProjectPath);
      Project.UnpinProject(oldProjectPath);
    }
    Requirements

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

    ArcGIS Pro version: 3.1 or higher.
    See Also