ArcObjects Library Reference (GeoDatabase)  

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(
  IRow** Row
);
[C++]

Parameters

Row [out, retval]

  Row is a parameter of type IRow

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

Bind a geodatabase table to a .NET control (Code Files: TableWrapper) | Closest facility application using the NAServer extension in ArcGIS Server via a GIS server (Code Files: ClosestFacility_GISServerAPIClass) | Closest facility solver (Code Files: frmClosestFacilitySolver) | Export any network analysis class to a text file (Code Files: NAClassToTextfileCmd) | Location-allocation solver (Code Files: frmLocationAllocationSolver) | Migrating from VB6 to VB .NET for ArcGIS 10 (Code Files: ButtonAddIn clscopy_table_sel clsCopyTableSelection) | Origin-destination cost matrix solver (Code Files: frmODCostMatrixSolver) | Route application using the NAServer extension in ArcGIS Server via a GIS client (Code Files: Route_GISClientClass) | Route application using the NAServer extension in ArcGIS Server via a GIS server (Code Files: Route_GISServerAPIClass) | Service area application using the NAServer extension in ArcGIS Server via a GIS server (Code Files: ServiceArea_GISServerAPIClass) | Service area solver (Code Files: frmServiceAreaSolver) | Vehicle routing problem solver (Code Files: frmVRPSolver) |

.NET Related Topics

Updating features | GeoData services | Geodatabase | How to create graph series with different color types | Joining data | Limiting query results and output | Migrating VB6 to VB.NET for ArcGIS 10 | Querying geodatabase tables | Sorting tables |