Bewerken

Delen via


DbEnumerator Constructors

Definition

Initializes a new instance of the DbEnumerator class.

Overloads

DbEnumerator(DbDataReader)

Initializes a new instance of the DbEnumerator class with the give n data reader.

DbEnumerator(IDataReader)

Initializes a new instance of the DbEnumerator class using the specified DataReader.

DbEnumerator(DbDataReader, Boolean)

Initializes a new instance of the DbEnumerator class using the specified reader and indicates whether to automatically close the reader after iterating through its data.

DbEnumerator(IDataReader, Boolean)

Initializes a new instance of the DbEnumerator class using the specified DataReader, and indicates whether to automatically close the DataReader after iterating through its data.

DbEnumerator(DbDataReader)

Source:
DbEnumerator.cs
Source:
DbEnumerator.cs
Source:
DbEnumerator.cs

Initializes a new instance of the DbEnumerator class with the give n data reader.

public:
 DbEnumerator(System::Data::Common::DbDataReader ^ reader);
public DbEnumerator (System.Data.Common.DbDataReader reader);
new System.Data.Common.DbEnumerator : System.Data.Common.DbDataReader -> System.Data.Common.DbEnumerator
Public Sub New (reader As DbDataReader)

Parameters

reader
DbDataReader

The DataReader through which to iterate.

Applies to

DbEnumerator(IDataReader)

Source:
DbEnumerator.cs
Source:
DbEnumerator.cs
Source:
DbEnumerator.cs

Initializes a new instance of the DbEnumerator class using the specified DataReader.

public:
 DbEnumerator(System::Data::IDataReader ^ reader);
public DbEnumerator (System.Data.IDataReader reader);
new System.Data.Common.DbEnumerator : System.Data.IDataReader -> System.Data.Common.DbEnumerator
Public Sub New (reader As IDataReader)

Parameters

reader
IDataReader

The DataReader through which to iterate.

See also

Applies to

DbEnumerator(DbDataReader, Boolean)

Source:
DbEnumerator.cs
Source:
DbEnumerator.cs
Source:
DbEnumerator.cs

Initializes a new instance of the DbEnumerator class using the specified reader and indicates whether to automatically close the reader after iterating through its data.

public:
 DbEnumerator(System::Data::Common::DbDataReader ^ reader, bool closeReader);
public DbEnumerator (System.Data.Common.DbDataReader reader, bool closeReader);
new System.Data.Common.DbEnumerator : System.Data.Common.DbDataReader * bool -> System.Data.Common.DbEnumerator
Public Sub New (reader As DbDataReader, closeReader As Boolean)

Parameters

reader
DbDataReader

The DataReader through which to iterate.

closeReader
Boolean

true to automatically close the DataReader after iterating through its data; otherwise, false.

Applies to

DbEnumerator(IDataReader, Boolean)

Source:
DbEnumerator.cs
Source:
DbEnumerator.cs
Source:
DbEnumerator.cs

Initializes a new instance of the DbEnumerator class using the specified DataReader, and indicates whether to automatically close the DataReader after iterating through its data.

public:
 DbEnumerator(System::Data::IDataReader ^ reader, bool closeReader);
public DbEnumerator (System.Data.IDataReader reader, bool closeReader);
new System.Data.Common.DbEnumerator : System.Data.IDataReader * bool -> System.Data.Common.DbEnumerator
Public Sub New (reader As IDataReader, closeReader As Boolean)

Parameters

reader
IDataReader

The DataReader through which to iterate.

closeReader
Boolean

true to automatically close the DataReader after iterating through its data; otherwise, false.

See also

Applies to