DataTableReader.FieldCount 屬性
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
回傳當前列的欄位數。
public:
virtual property int FieldCount { int get(); };
public override int FieldCount { get; }
member this.FieldCount : int
Public Overrides ReadOnly Property FieldCount As Integer
屬性值
當不被置於有效結果集時,為 0;否則為當前列的欄位數。
例外狀況
曾嘗試在封閉 DataTableReader的 . 中取得場數。