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


ICursor.NextRow 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.NextRow Method
ArcGIS Developer Help

ICursor.NextRow Method

Advance the position of the cursor by one and return the Row object at that position.

[Visual Basic .NET]
Public Function NextRow ( _
) As IRow
[C#]
public IRow NextRow (
);
[C++]
HRESULT NextRow(
void
);

Product Availability

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

Remarks

The NextRow method on a search or update cursor returns the next row in the result set to the application. The row object returned is allocated and hydrated by the cursor, and a reference to it is handed to the application. To retrieve all rows in a result set containing N rows, the application must make N calls to NextRow. If no rows remain in the result set, this method returns a null value.

See Also

ICursor Interface

.NET Samples

Closest facility solver Export any network analysis class to a text file Location-allocation solver Origin-destination cost matrix solver Service area solver Vehicle routing problem solver