AdoDotNetSchemaReader 類別
用於取得封裝結果集 DbDataReader 物件結構描述的方法。
繼承階層架構
System.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 | 取得表示資料參數是否通過 Descriptor 屬性公開其 IVsDataReaderDescriptor 實作。 (覆寫 DataReader.HasDescriptor。) |
![]() |
IsClosed | 取得值,指出 AdoDotNetSchemaReader 是否關閉。 (覆寫 DataReader.IsClosed。) |
![]() |
ItemCount | 取得指定資料項目數目的整數值包含在目前 AdoDotNetSchemaReader 執行個體。 (覆寫 DataReader.ItemCount。) |
![]() |
SchemaTable | 取得表示 DbDataReader 結構描述傳入 AdoDotNetSchemaReader之建構函式的 DataTable 物件。 |
![]() |
Status | 取得一個數字狀態碼傳回以目前提供資料的方法。 DataReader 物件。 (覆寫 DataReader.Status。) |
回頁首
方法
名稱 | 說明 | |
---|---|---|
![]() |
Close | 結束目前的執行個體。 AdoDotNetSchemaReader (覆寫 DataReader.Close()。) |
![]() |
Dispose() | 釋放 Managed 資源。 DataReader 目前執行個體所使用的。 (繼承自 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)。 |
回頁首
備註
實作 IVsDataReader 和 IVsDataReaderDescriptor 介面。 這個類別會接受做為輸入 DbDataReader 物件並公開 DbDataReader 物件的結構描述做為 DDEX DataReader。
資料讀取器的格式公開為 DeriveSchema 方法所需的時,有一組固定的資料行。 它不會公開基礎 DbDataReader 執行個體時所提供,當呼叫 GetSchemaTable 方法的相同資訊。
執行緒安全
這個型別的任何 Public static (在 Visual Basic 中為 Shared) 成員都具備執行緒安全。不保證任何執行個體成員是安全執行緒。