IScmManager.GetEditPermission method
Namespace: NextDesign.Desktop
Description
Gets edit permissions 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 already has editing authority, it will be treated as successful without obtaining authority.
Whether or not the unit was able to acquire authority 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 get permissions |
Return value
Exceptions
Name | Exception Class | Description |
---|---|---|
Invalid argument | ExtensionArgumentException | When a unit outside the project management is specified as the unit to be acquired |
Configuration Management Repository Operation Failed | ExtensionScmException | If Configuration Management Repository Operation Failed |