ArcGIS Pro 2.9 API Reference Guide
StartupProjectPath Property

ArcGIS.Desktop.Core Namespace > GeneralOptions Class : StartupProjectPath Property
Gets and sets the path to a default project (.aprx) to use when the application starts
Syntax
public string StartupProjectPath {get; set;}
Public Property StartupProjectPath As String
Remarks
Attempting to set StartupProjectPath to an invalid .aprx path will be ignored.
Set StartupOption to StartProjectMode.WithDefaultProject after setting the StartupProjectPath (to use the StartupProjectPath at start-up). Attempting to set the StartupOption to StartProjectMode.WithDefaultProject before the StartupProjectPath contains a valid .aprx path will be ignored.
Conversely, attempting to set the StartupProjectPath back to null or empty string will be ignored if StartupOption is currently set to StartProjectMode.WithDefaultProject. The StartupOption must be changed to a different start mode first.
Requirements

Target Platforms: Windows 11, Windows 10, Windows 8.1

See Also

Reference

GeneralOptions Class
GeneralOptions Members