ArcGIS Pro 2.8 API Reference Guide
SaveFromUntitled Method

ArcGIS.Desktop.Core Namespace > Project Class : SaveFromUntitled Method
Creates a new project from an untitled session
Syntax
public Task<Project> SaveFromUntitled( 
   string savePath,
   string projectName
)
Public Function SaveFromUntitled( _
   ByVal savePath As String, _
   ByVal projectName As String _
) As Task(Of Project)

Parameters

savePath
projectName

Return Value

A Task returning an indication if the operation was successful or not; true if the save operation succeeds
Exceptions
ExceptionDescription
The save location can not be found or accessed
The save location may be on a full disk
There was an unspecified write error while saving
There was an unspecified error while saving
Remarks

Saving the project requires write access to the location where the project is stored. If another person is using the same project file at the same time, saving your changes will not succeed.

Requirements

Target Platforms: Windows 10, Windows 8.1

See Also

Reference

Project Class
Project Members