public Task<bool> SaveAsync()
Public Function SaveAsync() As Task(Of Boolean)
public Task<bool> SaveAsync()
Public Function SaveAsync() As Task(Of Boolean)
Exception | Description |
---|---|
ProjectSavePathNotFoundException | The save location can not be found or accessed |
ProjectSaveDiskFullException | The save location may be on a full disk |
ProjectSaveWriteErrorException | There was an unspecified write error while saving |
ProjectSaveGeneralFailureException | There was an unspecified error while saving |
System.InvalidOperationException | Portal project is read-only |
The project file (*.aprx) stored on disk is replaced by a new version of the file representing the current state of the project. For example, this ensures the maps and layouts you created will be available the next time you open this project. Data displayed in a map is not saved in the project; the connections used to access the data are saved.
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.
Attempting to save a portal project that is read only will throw a System.InvalidOperationException. Addins should check the ReadOnly property to ensure that the project can be saved.
//Saves the project await Project.Current.SaveAsync();
Target Platforms: Windows 11, Windows 10