DataReader 類別
提供會公開所有資料來源的資料。
繼承階層架構
Object
Microsoft.VisualStudio.Data.Framework.DataReader
Microsoft.VisualStudio.Data.Framework.AdoDotNet.AdoDotNetReader
Microsoft.VisualStudio.Data.Framework.AdoDotNet.AdoDotNetSchemaReader
Microsoft.VisualStudio.Data.Framework.AdoDotNet.AdoDotNetTableReader
命名空間: Microsoft.VisualStudio.Data.Framework
組件: Microsoft.VisualStudio.Data.Framework (在 Microsoft.VisualStudio.Data.Framework.dll 中)
語法
'宣告
Public MustInherit Class DataReader _
Implements IVsDataReader, IDisposable, IVsDataReaderDescriptor
public abstract class DataReader : IVsDataReader,
IDisposable, IVsDataReaderDescriptor
public ref class DataReader abstract : IVsDataReader,
IDisposable, IVsDataReaderDescriptor
[<AbstractClass>]
type DataReader =
class
interface IVsDataReader
interface IDisposable
interface IVsDataReaderDescriptor
end
public abstract class DataReader implements IVsDataReader, IDisposable, IVsDataReaderDescriptor
DataReader 類型會公開下列成員。
建構函式
名稱 | 描述 | |
---|---|---|
![]() |
DataReader | 初始化 DataReader 類別的新執行個體。 |
回頁首
屬性
名稱 | 描述 | |
---|---|---|
![]() |
Descriptor | 取得描述資料來源之資料的資訊。 |
![]() |
HasDescriptor | 取得表示資料讀取器是否可透過 Descriptor 屬性公開其 IVsDataReaderDescriptor 實作。 |
![]() |
IsClosed | 取得 Boolean 這個值指出讀取器是否關閉。 |
![]() |
ItemCount | 取得項目數資料目前的區塊。 |
![]() |
Status | 取得一個小數點狀態碼傳回用目前提供資料的方法將資料讀取器。 |
回頁首
方法
名稱 | 描述 | |
---|---|---|
![]() |
Close | 關閉 DataReader 執行個體。 |
![]() |
Dispose() | 針對目前 DataReader 物件所持有的版本 Managed 資源執行個體。 |
![]() |
Dispose(Boolean) | 清除資源與目前 DataReader 執行個體,兩個,會隨著公用 Dispose 方法呼叫,而且,當物件完成與呼叫 Finalize 方法時。 |
![]() |
Equals | 判斷指定的物件是否等於目前的物件。 (繼承自 Object)。 |
![]() |
Finalize | 完成目前 DataReader 執行個體。 (覆寫 Object.Finalize。) |
![]() |
GetBytes(Int32, array<Byte[], Int32, Int32) | 擷取指定的位元組數原始二進位資料。 |
![]() |
GetBytes(String, array<Byte[], Int32, Int32) | 擷取指定的位元組數原始二進位資料。 |
![]() |
GetHashCode | 做為預設雜湊函式。 (繼承自 Object)。 |
![]() |
GetItem(Int32) | 擷取項目的值在資料目前區塊中的指定索引。 |
![]() |
GetItem(String) | 擷取一個資料項目的值具有指定名稱的資料目前區塊。 |
![]() |
GetItemIndex | 傳回索引與在資料區塊的指定項目名稱對應。 |
![]() |
GetItemMaxLength | 擷取最大長度,以字元為單位),該資料項目在指定的索引。 |
![]() |
GetItemName | 擷取具有指定名稱與資料項目在指定的索引,,如果有的話。 |
![]() |
GetItemType(Int32) | 擷取資料項目或項目的資料型別,在預設格式為 Default的指定索引。 |
![]() |
GetItemType(Int32, DataItemTypeFormat) | 擷取資料項目或項目的資料型別,在指定之格式的指定的索引。 |
![]() |
GetType | 取得目前實例 Type 的屬性。 (繼承自 Object)。 |
![]() |
IsNullItem(Int32) | 表示在指定索引處的資料項目是未指定的,也就是說, nullnull 參考 (即 Visual Basic 中的 Nothing)。 |
![]() |
IsNullItem(String) | 表示指定之資料項目的值是未指定的,也就是說, nullnull 參考 (即 Visual Basic 中的 Nothing)。 |
![]() |
MemberwiseClone | 建立目前 Object 的淺層複製 (Shallow Copy) 。 (繼承自 Object)。 |
![]() |
NextResult | 在讀取器包含多個結果集的情況下,將資料讀取器前移至下一個結果集。 |
![]() |
Read | 在讀取器包含多個資料流程區塊,將讀取器前移至下一頁資料區塊。 |
![]() |
Terminate | 結束直接資料讀取器,,而不需傳回任何資料或設定輸出參數。 |
![]() |
ToString | 傳回代表目前物件的字串。 (繼承自 Object)。 |
回頁首
備註
所有基底層級資料擷取機制傳回 DataReader 物件。
執行緒安全
這個類型的任何 Public static (在 Visual Basic 中為 Shared) 成員都是安全執行緒。不保證任何執行個體成員是安全執行緒。