This document is archived and information here might be outdated.  Recommended version.


ICursor.DeleteRow Method (ArcObjects .NET 10.8 SDK)
ArcObjects Help for .NET developers > ArcObjects Help for .NET developers > ArcObjects namespaces > Geodatabase > ESRI.ArcGIS.GeoDatabase > Interfaces > IC > ICursor Interface > ICursor.DeleteRow Method
ArcGIS Developer Help

ICursor.DeleteRow Method

Delete the existing Row in the database corresponding to the current position of the cursor.

[Visual Basic .NET]
Public Sub DeleteRow ( _
)
[C#]
public void DeleteRow (
);
[C++]
HRESULT DeleteRow(
void
);

Product Availability

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

Remarks

The cursor must be initialized to a row (with the NextRow method) before this method can be successfully called.

This should only be called on update cursors. To delete a row retrieved from a search cursor, call IRow.Delete on the row itself.

See Also

ICursor Interface