This document is archived and information here might be outdated. Recommended version. |
ArcObjects namespaces > Geodatabase > ESRI.ArcGIS.GeoDatabase > Interfaces > IF > IFeatureCursor Interface > IFeatureCursor.DeleteFeature Method (ArcObjects .NET 10.4 SDK) |
Delete the existing Feature in the database corresponding to the current position of the cursor.
[Visual Basic .NET]
Public Sub DeleteFeature ( _
)
[C#] public void DeleteFeature ( );
[C++]
HRESULT DeleteFeature(
void
);
The cursor must be initialized to a feature (with the NextFeature() method) before this method can be successfully called.
This should only be called on update cursors. To delete a feature retrieved from a search cursor, call IFeature.Delete on the feature itself.