如何删除ArcGIS File GDB文件
//删除临时对象
topology.RemoveClass(tempFeatureClass1);
topology.RemoveClass(tempFeatureClass2);
(tempFeatureClass1 as IDataset).Delete();
(tempFeatureClass2 as IDataset).Delete();
(topology as IDataset).Delete();
tempFeatureDataset.Delete();
//删除前关闭模式锁
var wflc = wf as IWorkspaceFactoryLockControl;
if (wflc.SchemaLockingEnabled)
{
wflc.DisableSchemaLocking();
}
//删除GDB
var ds = fw as IDataset;
if (ds.CanDelete())
ds.Delete();