ArcGIS Pro 3.4 API Reference Guide
ArcGIS.Desktop.Core Namespace / Project Class / CanOpen(String,String) Method
The full path or URL to the project or project package that will be opened
The version of ArcGIS Pro that was used to create the project or project package, for example, "1.0.2" or "1.1.0". A value will not be provided if the specified item is not recognized as a project.
Version

CanOpen(String,String) Method
Checks if the specified project or project package can be opened
Syntax
public static bool CanOpen( 
   string projectOrPackageUri,
   out string docVersion
)

Parameters

projectOrPackageUri
The full path or URL to the project or project package that will be opened
docVersion
The version of ArcGIS Pro that was used to create the project or project package, for example, "1.0.2" or "1.1.0". A value will not be provided if the specified item is not recognized as a project.

Return Value

A boolean indicating if the project or project package can be opened
Requirements

Target Platforms: Windows 11, Windows 10

ArcGIS Pro version: 3 or higher.
See Also