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


IEnumRow.Reset Method (ArcObjects .NET 10.8 SDK)
ArcObjects Help for .NET developers > ArcObjects Help for .NET developers > ArcObjects namespaces > Editor > ESRI.ArcGIS.Editor > Interfaces > IE > IEnumRow Interface > IEnumRow.Reset Method
ArcGIS Developer Help

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