Skip to main content

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

NameTypeDescription
projectIProjectProject
unitIModelUnitUnit to release privileges

Return value

Exceptions

NameException ClassDescription
Invalid argumentExtensionArgumentExceptionWhen a unit outside the project management is specified as a unit to be released
Illegal operationExtensionInvalidOperationExceptionIf the unit to be released contains a unit that has been added, deleted, or replaced in the project
Configuration Management Repository Operation FailedExtensionScmExceptionIf 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().