AggregationDimensionCollection.Add 方法

定义

重载

Add(AggregationDimension)

将指定的 AggregationDimension 添加到集合末尾。

Add(String)

使用指定的 CubeDimensionID 创建一个新的 AggregationDimension 对象,将其添加到集合末尾,并返回新创建的 AggregationDimension。

Add(AggregationDimension)

将指定的 AggregationDimension 添加到集合末尾。

public int Add (Microsoft.AnalysisServices.AggregationDimension item);
override this.Add : Microsoft.AnalysisServices.AggregationDimension -> int
Public Function Add (item As AggregationDimension) As Integer

参数

返回

AggregationDimension 添加到集合时所在的从零开始的索引。

例外

适用于

Add(String)

使用指定的 CubeDimensionID 创建一个新的 AggregationDimension 对象,将其添加到集合末尾,并返回新创建的 AggregationDimension。

public Microsoft.AnalysisServices.AggregationDimension Add (string cubeDimensionId);
override this.Add : string -> Microsoft.AnalysisServices.AggregationDimension
Public Function Add (cubeDimensionId As String) As AggregationDimension

参数

cubeDimensionId
String

新的 AggregationDimension 对象的 CubeDimensionID。

返回

新创建的 AggregationDimension 对象。

例外

指定的 CubeDimensionID 在集合中无效。

适用于