Skip to main content

IScmManager.ReleaseEditPermission Method

Namespace: NextDesign.Desktop

Description

Releases the edit permission for the specified unit in the specified project.
If the specified project is not linked to the configuration management system, nothing will be done.

If the specified unit does not have edit permission, the permission will not be released and the operation will be treated as successful.
You can determine whether the unit has been able to release its permission by checking the permission acquisition result object in the returned value.

Arguments

NameTypeDescription
projectIProjectProject
unitIModelUnitUnit for which permissions are to be released

Return value

Exceptions

NameException classDescription
Invalid argumentExtensionArgumentExceptionWhen a unit not managed by the project is specified as the unit to be released
Invalid operationExtensionInvalidOperationExceptionWhen a unit that has been added, deleted, or replaced in the project is included in the unit to be released
Configuration management repository operation failedExtensionScmExceptionWhen configuration management repository operation failed

Annotation

If the units to be released include units that have been added or removed from the project, calling this method will fail.
Permit the changes with CommitProject(), or discard the changes to the entire project with RevertProject().