IVsDataReader 介面

定義

表示介面,這個介面會公開從任何資料來源讀取資料的方法和屬性。Represents the interface that exposes methods and properties for reading data from any data source.

public interface class IVsDataReader : IDisposable
[Microsoft.VisualStudio.Data.Core.DataClientObject("29885742-32C5-46d3-A2A6-A28F4B6D746B")]
public interface IVsDataReader : IDisposable
[<Microsoft.VisualStudio.Data.Core.DataClientObject("29885742-32C5-46d3-A2A6-A28F4B6D746B")>]
type IVsDataReader = interface
    interface IDisposable
Public Interface IVsDataReader
Implements IDisposable
衍生
屬性
實作

屬性

Descriptor

由類別所執行時,會從資料來源取得描述資料的資訊。When implemented by a class, gets information that describes the data from a data source.

IsClosed

由類別執行時,會取得布林值,指出指定的讀取器是否已關閉。When implemented by a class, gets a Boolean value that indicates whether the specified reader is closed.

Status

由類別所執行時,會取得目前提供資料給資料讀取器的方法所傳回的數值狀態碼。When implemented by a class, gets a numerical status code returned by the method currently providing data to the data reader.

方法

Close()

由類別所執行時,會關閉 IVsDataReader 實例。When implemented by a class, closes the IVsDataReader instance.

GetBytes(Int32, Byte[], Int32, Int32)

由類別執行時,會抓取指定的位元組數目的原始二進位資料。When implemented by a class, retrieves a specified number of bytes of raw binary data.

GetBytes(String, Byte[], Int32, Int32)

由類別執行時,會抓取指定的位元組數目的原始二進位資料。When implemented by a class, retrieves a specified number of bytes of raw binary data.

GetItem(Int32)

由類別所執行時,會在目前資料區塊中的指定索引處,抓取專案的值。When implemented by a class, retrieves the value of the item at the specified index in the current block of data.

GetItem(String)

由類別所執行時,會使用目前資料區塊中指定的名稱來抓取資料項目的值。When implemented by a class, retrieves the value of a data item with the specified name in the current block of data.

IsNullItem(Int32)

由類別所執行時,表示指定之索引處的資料項目是否未指定,也就是 null。When implemented by a class, indicates whether the data item at the specified index is unspecified, that is, null.

IsNullItem(String)

由類別執行時,表示指定資料項目的值是否未指定,也就是 null。When implemented by a class, indicates whether the value of the given data item is unspecified, that is, null.

NextResult()

由類別執行時,在讀取器包含多個結果集的情況下,將資料讀取器前移至下一個結果集。When implemented by a class, advances the data reader to the next result set, in cases where the reader contains multiple result sets.

Read()

由類別執行時,如果讀取器包含多個資料區塊,就會將讀取器前移至下一個資料區塊。When implemented by a class, advances the reader to the next block of data, in cases where the reader contains more than one block of data.

Terminate()

由類別執行時,會立即終止資料讀取器,而不一定會傳回所有資料或設定輸出參數。When implemented by a class, terminates the data reader immediately, without necessarily returning all of the data or setting output parameters.

適用於