Export (0) Print
Expand All

AdoDotNetDataTableReader Class

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

System.Object
  Microsoft.VisualStudio.Data.DataReader
    Microsoft.VisualStudio.Data.AdoDotNet.AdoDotNetDataTableReader

Namespace:  Microsoft.VisualStudio.Data.AdoDotNet
Assembly:  Microsoft.VisualStudio.Data (in Microsoft.VisualStudio.Data.dll)

public class AdoDotNetDataTableReader : DataReader

The AdoDotNetDataTableReader type exposes the following members.

  NameDescription
Public methodAdoDotNetDataTableReader(DataTable)Class constructor. Initializes a parameterized instance of the AdoDotNetDataTableReader class along with a DataTable instance.
Public methodAdoDotNetDataTableReader(DataTable, Int32)Class constructor. Initializes a new instance of the AdoDotNetDataTableReader class along with a DataTable instance and a Status indicator.
Top

  NameDescription
Public propertyInnerDataTableProvides a means for accessing the underlying DataTable object directly.
Public propertyIsClosedRetrieves a Boolean value indicating whether the DataTableReader is closed. (Overrides DataReader.IsClosed.)
Public propertyItemCountOverride. Retrieves an integer value specifying the number of data items contained in the current DataTableReader instance. (Overrides DataReader.ItemCount.)
Public propertyStatusRetrieves an integer value representing the status of the data table; however, invariably returns zero. (Overrides DataReader.Status.)
Top

  NameDescription
Public methodCloseCloses the current DataTableReader instance. (Overrides DataReader.Close().)
Public methodDispose()Releases managed resources held for the current DataReader instance. (Inherited from DataReader.)
Protected methodDispose(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.)
Public methodEqualsDetermines whether the specified Object is equal to the current Object. (Inherited from Object.)
Protected methodFinalizeFinalizes the current DataReader instance. (Inherited from DataReader.)
Public methodGetBytesReads a stream of bytes into the buffer as an array, starting at a specified offset (Overrides DataReader.GetBytes(Int32, Byte[], Int32, Int32).)
Public methodGetHashCodeServes as a hash function for a particular type. (Inherited from Object.)
Public methodGetItem(Int32)Retrieves a data item at a specified index. (Overrides DataReader.GetItem(Int32).)
Public methodGetItem(String)Retrieves a data item with a specified name. (Overrides DataReader.GetItem(String).)
Public methodGetItemMaxLengthRetrieves an integer value specifying the maximum length of the data item at the specified index. (Overrides DataReader.GetItemMaxLength(Int32).)
Public methodGetItemNameRetrieves the string literal name of the data item at the specified index. (Overrides DataReader.GetItemName(Int32).)
Public methodGetItemTypeRetrieves the data type for a data item at a specified index and with a specified item type format. (Overrides DataReader.GetItemType(Int32, DataItemTypeFormat).)
Public methodGetTypeGets the Type of the current instance. (Inherited from Object.)
Public methodIsNullItemRetrieves a Boolean value indicating whether the data item at the specified index is null. (Overrides DataReader.IsNullItem(Int32).)
Protected methodMemberwiseCloneCreates a shallow copy of the current Object. (Inherited from Object.)
Public methodNextResultTests whether there is another result set and if true advances the AdoDotNetDataTableReader. (Overrides DataReader.NextResult().)
Public methodReadTests whether there is another data record and if true advances the AdoDotNetDataTableReader to the next record. (Overrides DataReader.Read().)
Public methodTerminateTerminates the data reader immediately, without necessarily returning all of the data nor setting output parameters. (Inherited from DataReader.)
Public methodToStringReturns a string that represents the current object. (Inherited from Object.)
Top

It is unlikely that a DDEX Provider will need to override or otherwise modify the behavior of this class; rather, they can simply instantiate it whenever they have an ADO.NET DataTable object in hand and they need to return a DataReader object.

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

Community Additions

ADD
Show:
© 2015 Microsoft