AdoDotNetSchemaReader Class
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Provides a means for obtaining the schema of the IDataReader object encapsulating the result set.
public ref class AdoDotNetSchemaReader : Microsoft::VisualStudio::Data::DataReader
public class AdoDotNetSchemaReader : Microsoft.VisualStudio.Data.DataReader
type AdoDotNetSchemaReader = class
inherit DataReader
Public Class AdoDotNetSchemaReader
Inherits DataReader
- Inheritance
Constructors
AdoDotNetSchemaReader(IDataReader) |
Class constructor. Initializes a new instance of the AdoDotNetSchemaReader class with an IDataReader. |
AdoDotNetSchemaReader(IDataReader, IDbCommand) |
Class constructor. Initializes a new instance of the AdoDotNetSchemaReader class with IDataReader and IDbCommand objects. |
Properties
InnerDataReader |
Provides a means for accessing the underlying IDataReader object directly. |
IsClosed |
Retrieves a Boolean value indicating whether or not the AdoDotNetSchemaReader is closed. |
ItemCount |
Retrieves an integer value specifying the number of data items contained in the current AdoDotNetSchemaReader instance. |
SchemaTable |
Retrieves the DataTable object that represents the schema of the IDataReader passed into the constructor of the AdoDotNetSchemaReader. |
Status |
Retrieves a numerical status code returned by the method currently providing data to the DataReader object. |
Methods
Close() |
Closes the current AdoDotNetSchemaReader 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 AdoDotNetSchemaReader. |
Read() |
Tests whether there is another data record and if true advances the AdoDotNetSchemaReader to the next record. |
Terminate() |
Terminates the DataReader object immediately, without necessarily returning all of the data nor setting output parameters. |