AggregationDesignAttributeCollection.Add 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
重载
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 添加到集合时所在的从零开始的索引。
例外
- 指定的项为空引用 (在 Visual Basic 中为 Nothing)。
- 集合中已存在指定的项。
- 指定的 AggregationDesignAttribute AttributeID 在集合中无效。
- 指定的名称 AggregationDesignAttribute 在集合中无效。
- 指定的 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 在集合中无效。