This document is archived and information here might be outdated.  Recommended version.


IDatabaseLockInfo Interface (ArcObjects .NET 10.6 SDK)
ArcObjects Help for .NET developers > ArcObjects namespaces > DataSourcesGDB > ESRI.ArcGIS.DataSourcesGDB > Interfaces > ID > IDatabaseLockInfo Interface (ArcObjects .NET 10.6 SDK)
ArcObjects Library Reference (DataSourcesGDB)  

IDatabaseLockInfo Interface

Infomation about database locks.

Product Availability

Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server.

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.

CoClasses that implement IDatabaseLockInfo

CoClasses and 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:

- 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.