ArcGIS Pro 2.7 API Reference Guide
CanOpen(String,String) Method

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.
Checks if the specified project or project package can be opened
Syntax
public static bool CanOpen( 
   string projectOrPackageUri,
   out string docVersion
)
Public Shared Function CanOpen( _
   ByVal projectOrPackageUri As String, _
   ByRef docVersion As String _
) As Boolean

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 10, Windows 8.1

See Also

Reference

Project Class
Project Members