部分代码private bool DeleteFeature(IFeature pFeature) { try { var pFeatureClass = pFeature.Class as IFeatureClass; var pDataset = pFeatureClass as IDataset; IWorkspace pWorkspace = pDataset.Workspace;