This document is archived and information here might be outdated. Recommended version. |
ArcObjects Help for .NET developers > ArcObjects namespaces > Geodatabase > ESRI.ArcGIS.GeoDatabase > Interfaces > ID > IDataset Interface > IDataset.Delete Method (ArcObjects .NET 10.5 SDK) |
Deletes this dataset.
[Visual Basic .NET]
Public Sub Delete ( _
)
[C#] public void Delete ( );
[C++]
HRESULT Delete(
void
);
FDO_E_FEATURECLASS_NETWORK_CANNOT_DELETE
The feature class is in a geometric network and cannot be deleted until the geometric network is deleted.
FDO_E_FEATURECLASS_TOPOLOGY_CANNOT_DELETE
The feature class is in a topology and cannot be deleted until the topology is deleted.
FDO_E_OBJECT_IS_DELETED
The feature class has either already been deleted or it has been moved into or out of a feature dataset.
If your application/site is not appropriately licensed, Delete can return an error of FDO_E_NO_OPERATION_LICENSE.
Certain feature classes, such as network and topology feature classes, cannot be deleted until their containing objects are deleted.