This document is archived and information here might be outdated. Recommended version. |
Infomation about database locks.
Name | Description | |
---|---|---|
DatasetType | The type of the locked dataset, if it is a dataset. | |
IsOwnLock | Is the lock from the current connection. | |
LockMode | The mode of the lock. | |
LockOwner | The user that owns the lock. | |
LockTime | The time when the lock was acquired. | |
LockType | The type of lock. | |
ObjectID | The ID of the locked object. | |
ObjectName | The name of the locked object. | |
SessionID | The session that owns the lock. |
Classes | Description |
---|
An IDatabaseLockInfo object is returned from the IDatabaseLocksInfo.get_AllLocks enumeration of locks (IEnumDatabaseLockInfo). This interface provides information about the individual locks:
- IsOwnLock indicates if the lock was created by the connection made by the user.
- LockMode returns a value from the esriSdeLockMode enumeration:
- LockOwner returns the user name associated with the connection that created the lock as a string.
- LockTime returns the database time the lock was created.
- LockType returns a value from the esriSdeLockType enumeration:
- ObjectID returns the lock identifier for its LockType.
- ObjectName returns the name of the object being locked.
- DatasetType returns the type of dataset locked as a value from the esriDatasetType enumeration. This property is only supported for the LockType of esriSdeLockType.esriLockTypeSchema.