Skip to main content

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

NameTypeDescription
projectIProjectProject
unitsIEnumerable<IModelUnit>Unit to release privileges

Return value

Exception

NameException classDescription
Invalid argumentExtensionArgumentExceptionIf a unit outside project management is specified as the unit to be released
Unauthorized operationExtensionInvalidOperationExceptionIf the units to be released include units that were added to, deleted from, or replaced in the project
Configuration management repository operation failsExtensionScmExceptionIf 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().