Language

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 を返します。

適用対象