Interface IDatabaseLockInfo
- Namespace
- ESRI.ArcGIS.DatasourcesGDB
- Assembly
- ESRI.Server.DatasourcesGDB.dll
Infomation about database locks.
[InterfaceType(ComInterfaceType.InterfaceIsIUnknown)]
[Guid("58F47253-0F9D-4E59-A573-6A3267D0810C")]
public interface IDatabaseLockInfo
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.
Properties
DatasetType
The type of the locked dataset, if it is a dataset.
esriDatasetType DatasetType { get; }
Property Value
IsOwnLock
Is the lock from the current connection.
bool IsOwnLock { get; }
Property Value
LockMode
The mode of the lock.
esriSdeLockMode LockMode { get; }
Property Value
LockOwner
The user that owns the lock.
string LockOwner { get; }
Property Value
LockTime
The time when the lock was acquired.
object LockTime { get; }
Property Value
LockType
The type of lock.
esriSdeLockType LockType { get; }
Property Value
ObjectID
The ID of the locked object.
long ObjectID { get; }
Property Value
ObjectName
The name of the locked object.
string ObjectName { get; }
Property Value
SessionID
The session that owns the lock.
int SessionID { get; }