Share via


AggregationInstanceAttributeCollection.Insert メソッド

定義

オーバーロード

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

例外

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

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

attributeId
String

新しい AggregationInstanceAttribute オブジェクトの AttributeID です。

戻り値

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

例外

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

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

適用対象