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


ISchemaLock.GetCurrentSchemaLocks Method (ArcObjects .NET 10.4 SDK)
ArcObjects Library Reference (GeoDatabase)  

ISchemaLock.GetCurrentSchemaLocks Method

The list of current locks.

[Visual Basic .NET]
Public Sub GetCurrentSchemaLocks ( _
    ByRef schemaLockInfo As IEnumSchemaLockInfo _
)
[C#]
public void GetCurrentSchemaLocks (
    ref IEnumSchemaLockInfo schemaLockInfo
);
[C++]
HRESULT GetCurrentSchemaLocks(
  IEnumSchemaLockInfo** schemaLockInfo
);
[C++]

Parameters schemaLockInfo [out]
schemaLockInfo is a parameter of type IEnumSchemaLockInfo

Product Availability

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

Remarks

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

.NET Related Topics

Using schema locks