System.Data.Common.DbEnumerator Class

Exposes the IEnumerable.GetEnumerator method, which supports a simple iteration over a collection by a .NET Framework data provider.

See Also: DbEnumerator Members

Syntax

public class DbEnumerator : IEnumerator

Remarks

The System.Data.Common.DbEnumerator class is implemented by a .NET Framework data provider to provide data binding support.

By design, the System.Data.Common.DbEnumerator object is intended for use with only one resultset. For example, if you execute a batch statement containing two SQL SELECT statements that return different schemas, the second statement might not retun the entire schema. To avoid this situation, obtain a System.Data.Common.DbEnumerator for each resultset, and then call the NextResult method of a .NET Framework data provider DataReader object.

Requirements

Namespace: System.Data.Common
Assembly: System.Data (in System.Data.dll)
Assembly Versions: 1.0.3300.0, 1.0.5000.0, 2.0.0.0