ArcObjects Library Reference (GeoDatabase)  

IFeatureCursor.DeleteFeature Method

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
);

Product Availability

Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server.

Remarks

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.

See Also

IFeatureCursor Interface