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

ISchemaLock.GetCurrentSchemaLocks Method (ArcObjects .NET 10.8 SDK)
ArcObjects Help for .NET developers > ArcObjects Help for .NET developers > ArcObjects namespaces > Geodatabase > ESRI.ArcGIS.GeoDatabase > Interfaces > IS > ISchemaLock Interface > ISchemaLock.GetCurrentSchemaLocks Method
ArcGIS Developer Help

ISchemaLock.GetCurrentSchemaLocks Method

The list of current locks.

[Visual Basic .NET]
Public Sub GetCurrentSchemaLocks ( _
    ByRef schemaLockInfo As IEnumSchemaLockInfo _
public void GetCurrentSchemaLocks (
    ref IEnumSchemaLockInfo schemaLockInfo
HRESULT GetCurrentSchemaLocks(
  IEnumSchemaLockInfo** schemaLockInfo
schemaLockInfo [out]

schemaLockInfo is a parameter of type IEnumSchemaLockInfo**

Product Availability

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


The ISchemaLockInfo interface is used in concert with ISchemaLock to provide information about a schema lock, for example, whether it is shared or exclusive and for ArcSDE geodatabases, the name of the user who has the lock.  Note that there will always be at least one schema lock on the dataset.  Also note that by checking the schema locks on a dataset a shared schema lock is applied to the data. 

See Also

ISchemaLock Interface