次の方法で共有


AggregationDimensionCollection.Insert メソッド

定義

オーバーロード

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 の挿入先である、0 から始まるインデックスです。

item
AggregationDimension

挿入する AggregationDimension です。

例外

指定したインデックスが有効な値ではありません (0 未満または要素の合計数より大きい)。

  • 指定したアイテムは 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 の挿入先である、0 から始まるインデックスです。

cubeDimensionId
String

新しい AggregationDimension オブジェクトの CubeDimensionID です。

戻り値

新しく作成された AggregationDimension オブジェクトです。

例外

指定したインデックスが有効な値ではありません (0 未満または要素の合計数より大きい)。

指定した CubeDimensionID がコレクション内で有効ではありません。

適用対象