DbEnumerator Class
This documentation is archived and is not being maintained.

DbEnumerator Class

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

For a list of all members of this type, see DbEnumerator Members.

System.Object
   System.Data.Common.DbEnumerator

[Visual Basic]
Public Class DbEnumerator
   Implements IEnumerator
[C#]
public class DbEnumerator : IEnumerator
[C++]
public __gc class DbEnumerator : public IEnumerator
[JScript]
public class DbEnumerator implements IEnumerator

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Remarks

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

By design, the 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 DbEnumerator for each resultset, and then call the NextResult method of a .NET Framework data provider DataReader object.

Requirements

Namespace: System.Data.Common

Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family, .NET Compact Framework

Assembly: System.Data (in System.Data.dll)

See Also

DbEnumerator Members | System.Data.Common Namespace

Show:
© 2016 Microsoft