IScmManager.ReleaseEditPermission method
Namespace: NextDesign.Desktop
Description
Releases editing privileges for the specified unit in the specified project.
Nothing will be done if the specified project is not linked to the configuration management system.
If the specified unit does not hold the editing authority, it will be treated as successful without releasing the authority.
Whether or not the authority of the unit has been released can be identified by checking the authority acquisition result object of the return value.
argument
Name | Type | Description |
---|---|---|
project | IProject | Project |
unit | IModelUnit | Unit to release privileges |
Return value
Exceptions
Name | Exception Class | Description |
---|---|---|
Invalid argument | ExtensionArgumentException | When a unit outside the project management is specified as a unit to be released |
Illegal operation | ExtensionInvalidOperationException | If the unit to be released contains a unit that has been added, deleted, or replaced in the project |
Configuration Management Repository Operation Failed | ExtensionScmException | If Configuration Management Repository Operation Failed |
Annotations
Calling this method will fail if the units to be released include units that have been added or deleted from the project.
Commit the changes with CommitProject() or discard the changes for the entire project with RevertProject().