Infomation about database locks.
Members
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. |
IDatabaseLockInfo.DatasetType Property
The type of the locked dataset, if it is a dataset.
Public ReadOnly Property DatasetType As esriDatasetType
public esriDatasetType DatasetType {get;}
IDatabaseLockInfo.IsOwnLock Property
Is the lock from the current connection.
Public ReadOnly Property IsOwnLock As Boolean
public bool IsOwnLock {get;}
IDatabaseLockInfo.LockMode Property
The mode of the lock.
Public ReadOnly Property LockMode As esriSdeLockMode
public esriSdeLockMode LockMode {get;}
IDatabaseLockInfo.LockOwner Property
The user that owns the lock.
Public ReadOnly Property LockOwner As String
public string LockOwner {get;}
IDatabaseLockInfo.LockTime Property
The time when the lock was acquired.
Public ReadOnly Property LockTime As Object
public object LockTime {get;}
IDatabaseLockInfo.LockType Property
The type of lock.
Public ReadOnly Property LockType As esriSdeLockType
public esriSdeLockType LockType {get;}
IDatabaseLockInfo.ObjectID Property
The ID of the locked object.
Public ReadOnly Property ObjectID As Long
public long ObjectID {get;}
IDatabaseLockInfo.ObjectName Property
The name of the locked object.
Public ReadOnly Property ObjectName As String
public string ObjectName {get;}
IDatabaseLockInfo.SessionID Property
The session that owns the lock.
Public ReadOnly Property SessionID As Integer
public int SessionID {get;}
Classes that implement IDatabaseLockInfo
Classes | Description |
---|
Remarks
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:
- esriSdeLockMode.esriLockModeExclusive
- esriSdeLockMode.esriLockModeShared
- 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:
- esriSdeLockType.esriLockTypeSchema
- esriSdeLockType.esriLockTypeState
- esriSdeLockType.esriLockTypeVersion
- 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.