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


IEnumRow.Reset Method (ArcObjects .NET 10.6 SDK)
ArcObjects Library Reference (Editor)  

IEnumRow.Reset Method

Resets the enumeration sequence to the beginning.

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

Product Availability

Available with ArcGIS Desktop.

Remarks

The Reset method will reset the enumeration so that the Next method will retreive the first IRow object in the collection. Use the Reset method if you need to recycle the enumeration.

  
[C#]

IRow row=new RowClass();
pRow=enumRow.Next;

if (row == null && enumRow.Count > 0) 
{
  enumRow.Reset;
  row=enumRow.Next;
}

See Also

IEnumRow Interface