次の方法で共有


AdoDotNetDataTableReader Class

Definition

Retrieves the contents of one or more DataTable objects in the form of one or more read-only, forward-only result sets.

public ref class AdoDotNetDataTableReader : Microsoft::VisualStudio::Data::DataReader
public class AdoDotNetDataTableReader : Microsoft.VisualStudio.Data.DataReader
type AdoDotNetDataTableReader = class
    inherit DataReader
Public Class AdoDotNetDataTableReader
Inherits DataReader
Inheritance
AdoDotNetDataTableReader

Constructors

AdoDotNetDataTableReader(DataTable, Int32)

Class constructor. Initializes a new instance of the AdoDotNetDataTableReader class along with a DataTable instance and a Status indicator.

AdoDotNetDataTableReader(DataTable)

Class constructor. Initializes a parameterized instance of the AdoDotNetDataTableReader class along with a DataTable instance.

Properties

InnerDataTable

Provides a means for accessing the underlying DataTable object directly.

IsClosed

Retrieves a Boolean value indicating whether the DataTableReader is closed.

ItemCount

Override. Retrieves an integer value specifying the number of data items contained in the current DataTableReader instance.

Status

Retrieves an integer value representing the status of the data table; however, invariably returns zero.

Methods

Close()

Closes the current DataTableReader instance.

Dispose()

Releases managed resources held for the current DataReader instance.

(Inherited from DataReader)
Dispose(Boolean)

Cleans up resources associated with the current DataReader instance, both when the public Dispose() method is called and as well as when the object is finalized with a call to the Finalize() method.

(Inherited from DataReader)
GetBytes(Int32, Byte[], Int32, Int32)

Reads a stream of bytes into the buffer as an array, starting at a specified offset

GetItem(Int32)

Retrieves a data item at a specified index.

GetItem(String)

Retrieves a data item with a specified name.

GetItemMaxLength(Int32)

Retrieves an integer value specifying the maximum length of the data item at the specified index.

GetItemName(Int32)

Retrieves the string literal name of the data item at the specified index.

GetItemType(Int32, DataItemTypeFormat)

Retrieves the data type for a data item at a specified index and with a specified item type format.

IsNullItem(Int32)

Retrieves a Boolean value indicating whether the data item at the specified index is null.

NextResult()

Tests whether there is another result set and if true advances the AdoDotNetDataTableReader.

Read()

Tests whether there is another data record and if true advances the AdoDotNetDataTableReader to the next record.

Terminate()

Terminates the data reader immediately, without necessarily returning all of the data nor setting output parameters.

(Inherited from DataReader)

Applies to