ArcObjects Component Help  (Core)    

ISchemaLock Interface

Provides access to members for accessing schema locking functionality.

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

Description
Method ChangeSchemaLock Changes a schema lock.
Method GetCurrentSchemaLocks The list of current locks.

CoClasses that implement ISchemaLock

CoClasses and Classes Description
CodedValueDomain ESRI Attribute set constraint object.
FeatureClass FeatureClass Object.
FeatureDataset FeatureDataset Object.
GeometricNetwork ESRI Geometric Network object.
ObjectClass ObjectClass Object.
RangeDomain ESRI Range Domain object.
StreetNetwork A container for describing a street network.
Table Table Object.
Topology ESRI Topology Object.
UtilityNetwork A container for describing a utility network.

Remarks

The ISchemaLock interface can be used to establish a shared lock on data, however, when accessing data using the components, shared locks are applied automatically. Exclusive locks are never applied automatically, and when performing an action, such as schema modification, 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, building a geometric network on a set of feature classes.

See Also

ISchemaLockInfo Interface | IDataset Interface | IEnumSchemaLockInfo Interface

Example

ISchemaLock Example