public Task<bool> SaveAsync()
Public Function SaveAsync() As Task(Of Boolean)
Return Value
A Task returning an indication if the operation was successful or not; true if the save operation succeeds
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 |
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.
//Saves the project await Project.Current.SaveAsync();
Target Platforms: Windows 11, Windows 10