次の方法で共有


IDataReader.FieldCount プロパティ

データ リーダー内のフィールドの数を取得します。

名前空間:  Microsoft.ReportingServices.DataProcessing
アセンブリ:   Microsoft.ReportingServices.SharePoint.UI.WebParts (Microsoft.ReportingServices.SharePoint.UI.WebParts.dll)
  Microsoft.ReportingServices.Interfaces (Microsoft.ReportingServices.Interfaces.dll)

構文

'宣言
ReadOnly Property FieldCount As Integer 
    Get
'使用
Dim instance As IDataReader 
Dim value As Integer 

value = instance.FieldCount
int FieldCount { get; }
property int FieldCount {
    int get ();
}
abstract FieldCount : int
function get FieldCount () : int

プロパティ値

型: System.Int32
有効なレコードセットに配置されない場合は 0 になり、それ以外の場合は現在のレコードの列の数になります。既定値は -1 です。

説明

行を返さないクエリを実行すると、FieldCount は -1 を返します。

関連項目

参照

IDataReader インターフェイス

Microsoft.ReportingServices.DataProcessing 名前空間