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


IWorkspaceFactoryLockControl.DisableSchemaLocking Method (ArcObjects .NET 10.8 SDK)
ArcObjects Help for .NET developers > ArcObjects Help for .NET developers > ArcObjects namespaces > Geodatabase > ESRI.ArcGIS.GeoDatabase > Interfaces > IW > IWorkspaceFactoryLockControl Interface > IWorkspaceFactoryLockControl.DisableSchemaLocking Method
ArcGIS Developer Help

IWorkspaceFactoryLockControl.DisableSchemaLocking Method

All workspaces created and managed by the factory will have schema locking disabled.

[Visual Basic .NET]
Public Sub DisableSchemaLocking ( _
)
[C#]
public void DisableSchemaLocking (
);
[C++]
HRESULT DisableSchemaLocking(
void
);

Product Availability

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

Remarks

The DisableSchemaLocking method will first attempt to release any existing schema locks for this process. It will also set a state of the IWorkspaceFactory that informs all workspaces instantiated by that factory to disable schema locking.

 

It is important to understand that when schema locking is disabled on a workspace, it doesn’t invalidate the schema lock API. The methods related to this API such as ISchemaLock.ChangeSchemaLock() will not result in the acquiring of a schema lock on the desired object.

See Also

IWorkspaceFactoryLockControl Interface