UnlockTree method: Tree class
Syntax
UnlockTree()
Description
Use the UnlockTree method to release a tree after editing. Use this method to prevent saving conflicts when you have multiple users accessing the same tree, using both the Tree API and PeopleSoft Tree Manager. To checkout a tree, use the LockTree method.
Note:
In order to use this method, you must have Tree multi-user environment enabled. You can check if it is enabled by using UseUpdateReservation Tree property.
To verify if a tree is checked out, use the LockStatus property.
This method can be used only on an open tree, not on a closed tree. This means you must have opened the tree with the Open method.
Parameters
None.
Returns
An integer: 0 if the tree is released successfully.