Provides access to members for accessing schema locking functionality.
Product Availability
Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server.
When To Use
Use ISchemaLock to establish an exclusive lock on a dataset when changing its schema, or performing other operations that require exclusive access to the data.
Members
CoClasses that implement ISchemaLock
Remarks
The ISchemaLock interface can be used to establish a shared lock on data. When accessing data using the ArcGIS application, shared locks are applied automatically. Exclusive locks are never applied automatically, and when performing an action that requires an exclusive hold on the data, you must apply an exclusive lock.
Examples of operations that should acquire a schema lock include adding a field to a feature class, associating a new class extension with a feature class, or building a geometric network on a set of feature classes.
When obtaining an exclusive schema lock on a personal geodatabase; any open row sets from the specific personal geodatabase will be invalidated; such as a cursor populated through the IFeatureClass.Search method. For this reason; the exclusive schema lock should be obtained prior to populating a row set; such as cursors.
See Also
ISchemaLockInfo Interface | IDataset Interface | IEnumSchemaLockInfo Interface
.NET Samples
Tabbed feature inspector (Code Files:
AttachTabbedInspectorExtensionCommand) |
Get and set key properties on a mosaic dataset (Code Files:
GetSetKeyProperty) |
Timestamper class extension (Code Files:
TimestampClassExtension) |
Tabbed feature inspector (Code Files:
AddEXTCLSID)
.NET Related Topics
Adding and deleting GlobalIDs |
Assigning domains to fields |
Creating a topology in the geodatabase |
Creating annotation and dimension feature classes |
Creating class extensions |
Creating features |
Creating fields |
How to create a dynamic geocoded feature class |
Using schema locks |
Working with indexes