IScmManager.ReleaseEditPermissions method
Namespace: NextDesign.Desktop
Description
Releases editing privileges for the specified unit in the specified project.
If the specified project is not linked with the configuration management system, nothing will be done.
Among the specified units, units that do not hold editing authority are treated as successful without releasing authority.
Among the target units, you can identify the units whose privileges were released and the units whose privileges could not be released by checking the privilege acquisition result object in the return value.
argument
Name | Type | Description |
---|---|---|
project | IProject | Project |
units | IEnumerable<IModelUnit> | Unit to release privileges |
Return value
Exception
Name | Exception class | Description |
---|---|---|
Invalid argument | ExtensionArgumentException | If a unit outside project management is specified as the unit to be released |
Unauthorized operation | ExtensionInvalidOperationException | If the units to be released include units that were added to, deleted from, or replaced in the project |
Configuration management repository operation fails | ExtensionScmException | If configuration management repository operation fails |
Annotation
Calling this method will fail if the units to be released include units that have been added to or removed from the project.
Commit the changes with CommitProject() or discard the changes for the entire project with RevertProject().