WorkspaceFile.SaveWorkspaceAndProjectFiles
- Updated2025-07-21
- 1 minute(s) read
WorkspaceFile.SaveWorkspaceAndProjectFiles
Syntax
WorkspaceFile.SaveWorkspaceAndProjectFiles( options = SaveWorkspaceFile_NoOptions)
Return Value
Returns False if you click Cancel in the Prompt dialog box.
Purpose
Writes the contents of the workspace file and the projects to disk if the files have been modified.
Remarks
This method does nothing if the workspace and project files have not been modified. If the files have been modified, this method prompts the user with the option to save and then writes the files. PropertyObjectFile.Path determines the pathname of the file to write. If an error occurs while saving any of the files, an exception is thrown containing all the files that could not be saved.
Parameters
options As Long
[In] Specifies one or more SaveWorkspaceFileOptions constants. Use the bitwise-OR operator to specify more than one options.
This parameter has a default value of SaveWorkspaceFile_NoOptions .