Exception | Description |
---|---|
ProjectLockingException | Thrown when the project cannot be locked. |
using (LockingStep ls = new LockingStep()) { try { _prj.LockAllObjects(); // all project's objects are locked now } catch (ProjectLockingException ex) { // the whole project couldn't be locked } } // here, when the LockingStep object is disposed, the project is unlocked again