DataTableReader.FieldCount 屬性

定義

回傳當前列的欄位數。

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的 . 中取得場數。

適用於