AggregationDesignAttributeCollection.Add 方法

定义

重载

Add(AggregationDesignAttribute)

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

Add(String)

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

Add(AggregationDesignAttribute)

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

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

参数

返回

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

例外

适用于

Add(String)

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

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

参数

attributeId
String

新的 AggregationDesignAttribute 对象的 AttributeID。

返回

新创建的 AggregationDesignAttribute 对象。

例外

指定的 AttributeID 在集合中无效。

适用于