OdbcDataReader.FieldCount プロパティ

定義

現在の行の列の数を取得します。

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

プロパティ値

Int32

現在の位置が有効なレコード セット内ではない場合は 0。それ以外の場合は現在のレコード内の列の数。 既定値は -1 です。

実装

例外

データ ソースへの現在の接続がありません。

注釈

非表示フィールドを含めます。 非表示フィールドを除外するには、VisibleFieldCount を使用します。

行を返さないクエリを実行すると、 FieldCount 0 が返されます。

適用対象

こちらもご覧ください