ArcEngine 释放锁文件,彻底移除图层

IWorkspaceFactory pwf = newShapefileWorkspaceFactory();
//关闭资源锁定  
IWorkspaceFactoryLockControl ipWsFactoryLock = IWorkspaceFactoryLockControl)pwf;
if(ipWsFactoryLock.SchemaLockingEnabled)
{
ipWsFactoryLock.DisableSchemaLocking();
}

转载自:https://blog.csdn.net/sinat_27305053/article/details/57085745

You may also like...

退出移动版