AggregationDimensionCollection.Insert 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
多載
Insert(Int32, AggregationDimension) |
將指定的 AggregationDimension 插入集合中指定的索引位置。 |
Insert(Int32, String) |
使用指定的 CubeDimensionID,建立新的 AggregationDimension 物件,然後將它插入集合中指定的索引處,並傳回新建立的 AggregationDimension。 |
Insert(Int32, AggregationDimension)
將指定的 AggregationDimension 插入集合中指定的索引位置。
public void Insert (int index, Microsoft.AnalysisServices.AggregationDimension item);
override this.Insert : int * Microsoft.AnalysisServices.AggregationDimension -> unit
Public Sub Insert (index As Integer, item As AggregationDimension)
參數
- index
- Int32
以零為基底的索引,這是插入 AggregationDimension 之處。
- item
- AggregationDimension
要插入的 AggregationDimension。
例外狀況
指定的索引不是有效的值 (小於零或大於項目總數)。
- 指定的項目為 Null 參考 (Visual Basic 中的 Nothing)。
- 指定的項目已存在於集合中。
- 指定的 AggregationDimension CubeDimensionID 在集合中無效。
- 指定的 AggregationDimension 相容性層級在集合中無效。
適用於
Insert(Int32, String)
使用指定的 CubeDimensionID,建立新的 AggregationDimension 物件,然後將它插入集合中指定的索引處,並傳回新建立的 AggregationDimension。
public Microsoft.AnalysisServices.AggregationDimension Insert (int index, string cubeDimensionId);
override this.Insert : int * string -> Microsoft.AnalysisServices.AggregationDimension
Public Function Insert (index As Integer, cubeDimensionId As String) As AggregationDimension
參數
- index
- Int32
以零為基底的索引,這是插入 AggregationDimension 之處。
- cubeDimensionId
- String
新 AggregationDimension 物件的 CubeDimensionID。
傳回
新建立的 AggregationDimension 物件。
例外狀況
指定的索引不是有效的值 (小於零或大於項目總數)。
指定的 CubeDimensionID 在集合中無效。