共用方式為


AdoDotNetSchemaReader 類別

用於取得 DbDataReader 物件的結構描述提供封裝結果集。

繼承階層架構

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

命名空間:  Microsoft.VisualStudio.Data.Framework.AdoDotNet
組件:  Microsoft.VisualStudio.Data.Framework (在 Microsoft.VisualStudio.Data.Framework.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(DbDataReader) 初始化 AdoDotNetSchemaReader 類別的新執行個體。資料讀取器物件的。
公用方法 AdoDotNetSchemaReader(DbDataReader, DbCommand) 初始化 AdoDotNetSchemaReader 類別的新執行個體。資料讀取器物件的,而且資料命令物件。

回頁首

屬性

  名稱 描述
公用屬性 Descriptor 取得描述資料來源之資料的資訊。 (繼承自 DataReader)。
受保護的屬性 HasDescriptor 取得表示資料參數是否公開其 IVsDataReaderDescriptor 實作。 (覆寫 DataReader.HasDescriptor。)
公用屬性 IsClosed 取得值,指出 AdoDotNetSchemaReader 是否關閉。 (覆寫 DataReader.IsClosed。)
公用屬性 ItemCount 取得指定資料項目包含的項目數目的整數值在目前 AdoDotNetSchemaReader 執行個體。 (覆寫 DataReader.ItemCount。)
受保護的屬性 SchemaTable 取得代表 DbDataReader 結構描述與傳入 AdoDotNetSchemaReader之建構函式的 DataTable 物件。
公用屬性 Status 取得一個小數點狀態碼傳回用目前提供資料給 DataReader 方法的物件。 (覆寫 DataReader.Status。)

回頁首

方法

  名稱 描述
公用方法 Close 結束目前的 AdoDotNetSchemaReader 執行個體。 (覆寫 DataReader.Close()。)
公用方法 Dispose() 針對目前 DataReader 物件所持有的版本 Managed 資源執行個體。 (繼承自 DataReader)。
受保護的方法 Dispose(Boolean) 清除資源與目前 DataReader 執行個體,兩個,會隨著公用 Dispose 方法呼叫,而且,當物件完成與呼叫 Finalize 方法時。 (繼承自 DataReader)。
公用方法 Equals 判斷指定的物件是否等於目前的物件。 (繼承自 Object)。
受保護的方法 Finalize 完成目前 DataReader 執行個體。 (繼承自 DataReader)。
公用方法 GetBytes(String, array<Byte[], Int32, Int32) 擷取指定的位元組數原始二進位資料。 (繼承自 DataReader)。
公用方法 GetBytes(Int32, array<Byte[], Int32, Int32) 讀取位元組資料流讀入緩衝區做為陣列,開始於指定的位移。 (覆寫 DataReader.GetBytes(Int32, array<Byte[], Int32, Int32)。)
公用方法 GetHashCode 做為預設雜湊函式。 (繼承自 Object)。
公用方法 GetItem(Int32) 擷取資料項目中指定的索引位置。 (覆寫 DataReader.GetItem(Int32)。)
公用方法 GetItem(String) 擷取具有指定名稱的資料項目。 (覆寫 DataReader.GetItem(String)。)
公用方法 GetItemIndex 擷取項目的索引指定的項目名稱,例如一行的索引所指定的資料行名稱。 (覆寫 DataReader.GetItemIndex(String)。)
公用方法 GetItemMaxLength 擷取指定資料項目的最大長度的整數值在指定的索引。 (覆寫 DataReader.GetItemMaxLength(Int32)。)
公用方法 GetItemName 擷取資料項目的字串常值名稱在指定的索引。 (覆寫 DataReader.GetItemName(Int32)。)
公用方法 GetItemType(Int32) 擷取資料項目或項目的資料型別,在預設格式為 Default的指定索引。 (繼承自 DataReader)。
公用方法 GetItemType(Int32, DataItemTypeFormat) 擷取資料項目的資料型別在指定的索引和使用指定的項目型別格式。 (覆寫 DataReader.GetItemType(Int32, DataItemTypeFormat)。)
公用方法 GetType 取得目前實例 Type 的屬性。 (繼承自 Object)。
公用方法 IsNullItem(Int32) 擷取表示位於指定索引的資料是否為 Boolean 的值是 nullnull 參考 (即 Visual Basic 中的 Nothing)。 (覆寫 DataReader.IsNullItem(Int32)。)
公用方法 IsNullItem(String) 擷取表示指定之資料項目清單的資料項目值的 Boolean 值為 nullnull 參考 (即 Visual Basic 中的 Nothing)。 (覆寫 DataReader.IsNullItem(String)。)
受保護的方法 MemberwiseClone 建立目前 Object 的淺層複製 (Shallow Copy) 。 (繼承自 Object)。
公用方法 NextResult 測試是否有另一個結果集,並,,則為 true,將 AdoDotNetSchemaReader前移。 (覆寫 DataReader.NextResult()。)
公用方法 Read 測試是否有另一個資料錄,然後,,則為 true,將 AdoDotNetSchemaReader 前進至下一筆資料錄。 (覆寫 DataReader.Read()。)
公用方法 Terminate 終止 DataReader 物件,直接,而不需傳回任何資料或設定輸出參數。 (覆寫 DataReader.Terminate()。)
公用方法 ToString 傳回代表目前物件的字串。 (繼承自 Object)。

回頁首

備註

實作 IVsDataReaderIVsDataReaderDescriptor 介面。 這個類別會接受做為輸入 DbDataReader 物件並公開 DbDataReader 物件的結構描述做為 DDEX DataReader

資料讀取器的格式公開為 DeriveSchema 方法所需要的是,具有固定的資料行。 它不會公開在基礎 DbDataReader 執行個體時所提供,在呼叫 GetSchemaTable 方法的相同資訊。

執行緒安全

這個類型的任何 Public static (在 Visual Basic 中為 Shared) 成員都是安全執行緒。不保證任何執行個體成員是安全執行緒。

請參閱

參考

Microsoft.VisualStudio.Data.Framework.AdoDotNet 命名空間