IScmManager.UpdateProject Method
Namespace: NextDesign.Desktop
Description
Updates the specified project to the latest state in the configuration management repository.
Nothing will be done if the specified project is not linked to the configuration management system.
Arguments
Name | Type | Description |
---|---|---|
project | IProject | Project |
units | IEnumerable<IModelUnit> | Units to update If null is specified, the entire project will be updated (default behavior). |
autoReload | bool | Whether to automatically reload the project after updating - If true is specified, the project will be reloaded (default behavior). - If false is specified, only the project in the working folder will be updated, and the project will not be reloaded. Note that if the specified project is not the current project, the autoReload setting will be ignored. |
silent | bool | If true is specified, the progress will not be displayed in a progress bar. The default value is false. |
Return value
- void
Exceptions
Name | Exception class | Description |
---|---|---|
Invalid argument | ExtensionArgumentException | When a unit outside the project management is specified as the unit to be updated |
Configuration management repository operation failed | ExtensionScmException | When configuration management repository operation failed |