ArcGIS Pro 2.7 API Reference Guide
OpenAsync Method (Project)

ArcGIS.Desktop.Core Namespace > Project Class : OpenAsync Method
The full path or URL to the project or project package that will be opened
Opens an existing project or project package
Syntax
public static Task<Project> OpenAsync( 
   string projectUri
)
Public Shared Function OpenAsync( _
   ByVal projectUri As String _
) As Task(Of Project)

Parameters

projectUri
The full path or URL to the project or project package that will be opened

Return Value

A Task returning the project that was opened
Exceptions
ExceptionDescription
The exception that is thrown when a null reference (Nothing in Visual Basic) is passed to a method that does not accept it as a valid argument.
The exception that is thrown when an attempt to access a file that does not exist on disk fails.
Remarks

ArcGIS Pro can open projects or project packages stored on a local or network computer. ArcGIS Pro can also open project packages available from a portal or ArcGIS Online, if an appropriate URL is provided. You must sign in to the organization that hosts the project package if it is not public.

If appropriate, a project package is first downloaded from a portal to the user profile directory. Project packages are unpacked, then the project file (*.aprx) it contains is opened by ArcGIS Pro.

If a project is currently open in ArcGIS Pro, it will be closed before the specified project is opened.

Requirements

Target Platforms: Windows 10, Windows 8.1

See Also

Reference

Project Class
Project Members