ArcGIS Pro 3.1 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.

In This Topic
    CanOpen(String,String) Method
    In This Topic
    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 11, Windows 10

    ArcGIS Pro version: 3.0 or higher.
    See Also