次の方法で共有


AggregationFieldCount プロパティ

データが集計されるフィールドの数を取得します。

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

構文

'宣言
ReadOnly Property AggregationFieldCount As Integer
    Get
'使用
Dim instance As IDataReaderExtension
Dim value As Integer

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

プロパティ値

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

説明

AggregationFieldCount プロパティは、結果セットに関する特定の集計情報をレポート サーバーに指定することを可能にします。たとえば、次の結果セットを使用します。

City          State          Sales
====================================
Seattle       WA             150.65
Seattle       (null)         150.65
Tacoma        WA              75.54
Tacoma        (null)          75.54
(null)        WA             226.19
Portland      OR             112.25
Portland      (null)         112.25
(null)        OR             112.25
(null)        (null)         338.44

結果セットの各行の集計フィールドであるフィールドの数を表す整数値を返す必要があります。前の例では、AggregationFieldCount は最初の行に関しては 2 を、2 番目の行に関しては 1 を、3 番目の行に関しては 2 を返し、以下同様となります。行 9 に関しては、AggregationFieldCount は 0 を返します。

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