怎么能删除personal Geodatabase 或 FileGeodatabase里的数据?
用AE编程或toolbox
------解决思路----------------------
using...
public void Dele()
{
IWorkspaceName pWorkspaceName = new WorkspaceNameClass();
pWorkspaceName.WorkspaceFactoryProgID = "esriDataSourcesGDB.AccessWorkspaceFactory";
pWorkspaceName.PathName = mdbPath + "GIR_DB.mdb";
IName n = pWorkspaceName as IName;
IFeatureWorkspace Workspace = n.Open() as IFeatureWorkspace;
IFeatureClass tmpfeatureclass;
tmpfeatureclass = Workspace.OpenFeatureClass("Tmp_Road_Geocoded");
IDataset set = tmpfeatureclass as IDataset;
set.CanDelete();
set.Delete();
}
楼主可以去试一试。Workspace不直接提供删除的方法,需要绕一点弯子才能做到。
------解决思路----------------------
你要删除什么数据,是要素、要素类、还是表
大概的环境也说说。