IDatabaseLockInfo Interface

Infomation about database locks.

Members

Name Description
Read-only property DatasetType The type of the locked dataset, if it is a dataset.
Read-only property IsOwnLock Is the lock from the current connection.
Read-only property LockMode The mode of the lock.
Read-only property LockOwner The user that owns the lock.
Read-only property LockTime The time when the lock was acquired.
Read-only property LockType The type of lock.
Read-only property ObjectID The ID of the locked object.
Read-only property ObjectName The name of the locked object.
Read-only property 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.

Your browser is no longer supported. Please upgrade your browser for the best experience. See our browser deprecation post for more details.