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
Name | Type | Description |
---|---|---|
project | IProject | Project |
unit | IModelUnit | Unit for which permissions are to be released |
Return value
Exceptions
Name | Exception class | Description |
---|---|---|
Invalid argument | ExtensionArgumentException | When a unit not managed by the project is specified as the unit to be released |
Invalid operation | ExtensionInvalidOperationException | When a unit that has been added, deleted, or replaced in the project is included in the unit to be released |
Configuration management repository operation failed | ExtensionScmException | When 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().