ArcEngine 释放锁文件,彻底移除图层
IWorkspaceFactory pwf =
new
ShapefileWorkspaceFactory();
//关闭资源锁定
IWorkspaceFactoryLockControl ipWsFactoryLock = IWorkspaceFactoryLockControl)pwf;
if
(ipWsFactoryLock.SchemaLockingEnabled)
{
ipWsFactoryLock.DisableSchemaLocking();
}
转载自:https://blog.csdn.net/sinat_27305053/article/details/57085745