語言

IDataReader.FieldCount 屬性

定義

取得資料讀取器中的欄位數量。

public:
 property int FieldCount { int get(); };
public int FieldCount { get; }
member this.FieldCount : int
Public ReadOnly Property FieldCount As Integer

屬性值

當未被置於有效記錄集中時, 0;否則為目前記錄中的欄位數。 預設值為 -1。

備註

執行不回傳列的查詢後,回 FieldCount 傳 -1。

適用於