AdoDotNetSchemaReader 类

提供用于获取封装该结果的 IDataReader 对象的架构提供方法设置。

继承层次结构

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

命名空间:  Microsoft.VisualStudio.Data.AdoDotNet
程序集:  Microsoft.VisualStudio.Data(在 Microsoft.VisualStudio.Data.dll 中)

语法

声明
Public Class AdoDotNetSchemaReader _
    Inherits DataReader
public class AdoDotNetSchemaReader : DataReader
public ref class AdoDotNetSchemaReader : public DataReader
type AdoDotNetSchemaReader =  
    class
        inherit DataReader
    end
public class AdoDotNetSchemaReader extends DataReader

AdoDotNetSchemaReader 类型公开以下成员。

构造函数

  名称 说明
公共方法 AdoDotNetSchemaReader(IDataReader) 选件类构造函数。使用 IDataReader 初始化 AdoDotNetSchemaReader 类的新实例。
公共方法 AdoDotNetSchemaReader(IDataReader, IDbCommand) 选件类构造函数。初始化 AdoDotNetSchemaReader 选件类的新实例。IDataReaderIDbCommand 对象的。

页首

属性

  名称 说明
公共属性 InnerDataReader 提供方法。直接访问基础 IDataReader 对象。
公共属性 IsClosed 检索指示是否 AdoDotNetSchemaReader 的布尔值已关闭。 (重写 DataReader.IsClosed。)
公共属性 ItemCount 检索指定数据项的数量的整数值包含在当前 AdoDotNetSchemaReader 实例。 (重写 DataReader.ItemCount。)
公共属性 SchemaTable 检索表示 IDataReader 模式传递给 AdoDotNetSchemaReader的构造函数的 DataTable 对象。
公共属性 Status 检索方法返回的数值状态当前代码提供数据。DataReader 对象。 (重写 DataReader.Status。)

页首

方法

  名称 说明
公共方法 Close 关闭当前 AdoDotNetSchemaReader 实例。 (重写 DataReader.Close()。)
公共方法 Dispose() 版本为当前 DataReader 保存托管资源实例。 (继承自 DataReader。)
受保护的方法 Dispose(Boolean) 清理资源与当前 DataReader 实例,两个,当公共 Dispose 调用方法时、和),当对象完成的调用。Finalize 方法。 (继承自 DataReader。)
公共方法 Equals 确定指定的对象是否等于当前对象。 (继承自 Object。)
受保护的方法 Finalize 完成当前 DataReader 实例。 (继承自 DataReader。)
公共方法 GetBytes 读取字节流向缓冲区作为数组,开始在指定的偏移量 (重写 DataReader.GetBytes(Int32, array<Byte[], Int32, Int32)。)
公共方法 GetHashCode 用作特定类型的哈希函数。 (继承自 Object。)
公共方法 GetItem(Int32) 检索数据项在指定的索引。 (重写 DataReader.GetItem(Int32)。)
公共方法 GetItem(String) 检索具有指定名称的数据项。 (重写 DataReader.GetItem(String)。)
公共方法 GetItemMaxLength 检索指定数据项的最大长度整数值位于指定索引处。 (重写 DataReader.GetItemMaxLength(Int32)。)
公共方法 GetItemName 检索数据项的字符串名称位于指定索引处。 (重写 DataReader.GetItemName(Int32)。)
公共方法 GetItemType 检索数据项的数据类型在指定的索引和具有指定的项目类型的布局。 (重写 DataReader.GetItemType(Int32, DataItemTypeFormat)。)
公共方法 GetType 获取当前实例的 Type。 (继承自 Object。)
公共方法 IsNullItem 检索指示位于指定索引处的数据项是否的布尔值是 nullnull 引用(在 Visual Basic 中为 Nothing)。 (重写 DataReader.IsNullItem(Int32)。)
受保护的方法 MemberwiseClone 创建当前 Object 的浅表副本。 (继承自 Object。)
公共方法 NextResult 测试是否设置了另一个结果,并且,如果 true 高级 AdoDotNetSchemaReader。 (重写 DataReader.NextResult()。)
公共方法 Read 测试是否有另一个数据记录,并且,如果 true 高级 AdoDotNetSchemaReader 到下一条记录。 (重写 DataReader.Read()。)
公共方法 Terminate 立即停止 DataReader,对象,而不需要返回所有数据也不将输出参数。 (重写 DataReader.Terminate()。)
公共方法 ToString 返回表示当前对象的字符串。 (继承自 Object。)

页首

备注

实现 IDataReader 接口。此选件类采用作为输入 IDataReader 对象并显示 IDataReader 对象的架构作为DDEX DataReader

数据读取器的布局显示为 DeriveSchema 方法需要方式,具有一组固定的列。它不公开基础 IDataReader 实例时提供,在调用 GetSchemaTable 方案的同一信息。

线程安全

此类型的任何公共 static(在 Visual Basic 中为 Shared) 成员都是线程安全的。但不保证所有实例成员都是线程安全的。

请参见

参考

Microsoft.VisualStudio.Data.AdoDotNet 命名空间