AggregationInstanceAttributeCollection.Insert 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
重载
Insert(Int32, AggregationInstanceAttribute) |
将指定的 AggregationInstanceAttribute 插入到集合中的指定索引处。 |
Insert(Int32, String) |
使用指定的 AttributeID 创建一个新的 AggregationInstanceAttribute 对象,将其插入到集合中的指定索引处,并返回新创建的 AggregationInstanceAttribute。 |
Insert(Int32, AggregationInstanceAttribute)
将指定的 AggregationInstanceAttribute 插入到集合中的指定索引处。
public void Insert (int index, Microsoft.AnalysisServices.AggregationInstanceAttribute item);
override this.Insert : int * Microsoft.AnalysisServices.AggregationInstanceAttribute -> unit
Public Sub Insert (index As Integer, item As AggregationInstanceAttribute)
参数
- index
- Int32
插入 AggregationInstanceAttribute 时所在的从零开始的索引。
例外
指定的索引不是有效值(小于零或大于元素总数)。
- 指定的项为空引用 (在 Visual Basic 中为 Nothing)。
- 集合中已存在指定的项。
- 指定的 AggregationInstanceAttribute AttributeID 在集合中无效。
- 指定的 AggregationInstanceAttribute 兼容性级别在集合中无效。
适用于
Insert(Int32, String)
使用指定的 AttributeID 创建一个新的 AggregationInstanceAttribute 对象,将其插入到集合中的指定索引处,并返回新创建的 AggregationInstanceAttribute。
public Microsoft.AnalysisServices.AggregationInstanceAttribute Insert (int index, string attributeId);
override this.Insert : int * string -> Microsoft.AnalysisServices.AggregationInstanceAttribute
Public Function Insert (index As Integer, attributeId As String) As AggregationInstanceAttribute
参数
- index
- Int32
插入 AggregationInstanceAttribute 时所在的从零开始的索引。
- attributeId
- String
新的 AggregationInstanceAttribute 对象的 AttributeID。
返回
新创建的 AggregationInstanceAttribute 对象。
例外
指定的索引不是有效值(小于零或大于元素总数)。
指定的 AttributeID 在集合中无效。