IDataReader.FieldCount 屬性
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
取得資料讀取器中的欄位數量。
public:
property int FieldCount { int get(); };
public int FieldCount { get; }
member this.FieldCount : int
Public ReadOnly Property FieldCount As Integer
屬性值
當未被置於有效記錄集中時, 0;否則為目前記錄中的欄位數。 預設值為 -1。
備註
執行不回傳列的查詢後,回 FieldCount 傳 -1。