| SE_version_lock |
Locks a version.
LONG SE_version_lock (SE_CONNECTION connection, const CHAR *version_name, LONG lock_mode);
| connection | The connection handle |
| version_name | The version name |
| lock_mode | The lock mode |
SE_version_lock locks a version. The lock modes are:
SE_VERSION_SHARED_LOCK
SE_VERSION_EXCLUSIVE_LOCK
SE_VERSION_EXCLUSIVE_AUTOLOCK
The SE_VERSION_EXCLUSIVE_AUTOLOCK is only set by the server and is used during a DDL operation such as a rename of a delete operation. The server must be able to acquire this lock before it can succeed with the proposed DDL operation.
The ArcGIS desktop applies an SE_VERSION_SHARED_LOCK whenever the session begin editing a version's data, to insure the version cannot be renamed or moved to a different state until the edit is complete.
The ArcGIS desktop applies an SE_VERSION_EXCLUSIVE_LOCK whenever the session begins to reconcile the version.
SE_SUCCESS
SE_DB_IO_ERROR
SE_INVALID_CONNECTION
SE_NET_FAILURE
SE_NO_PERMISSIONS
SE_SDE_NOT_STARTED
SE_STREAM_IN_PROGRESS
SE_VERSION_NOEXIST