ArcGIS Pro 2.7 API Reference Guide
CreateAsync Method

ArcGIS.Desktop.Core Namespace > Project Class : CreateAsync Method
(optional) The settings that will be use to create a new project. (default value = null)CreateProjectSettings
Creates a new project with properties determined by CreateProjectSettings
Syntax
Public Shared Function CreateAsync( _
   Optional ByVal createProjectSettings As CreateProjectSettings _
) As Task(Of Project)

Parameters

createProjectSettings
(optional) The settings that will be use to create a new project. (default value = null)CreateProjectSettings

Return Value

A Task returning the new project that was created
Exceptions
ExceptionDescription
Path { path here } not found.
Remarks

To create a project with system defaults, please use the CreateProjectSettings.TemplateType property. Use of the system templates via the template path is deprecated as of 2.3.
The default TemplateType is TemplateType.Catalog. Either set a different TemplateType (as needed) or provide a full path to a Pro project template in TemplatePath, in which case the TemplateType is ignored.
If CreateProjectSettings is null, a new untitled project is created (TemplateType.Untitled).

An invalid CreateProjectSettings.TemplatePath will throw a "Path { path here } not found" FileNotFoundException. This includes use of a portal or online Pro project template item URI. The template should be downloaded first.

Requirements

Target Platforms: Windows 10, Windows 8.1

See Also

Reference

Project Class
Project Members