This document is archived and information here might be outdated. Recommended version. |
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
);
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.