AggregationDimensionCollection.Insert Method

Definition

Overloads

Insert(Int32, AggregationDimension)

Inserts the specified AggregationDimension to the collection at the specified index.

Insert(Int32, String)

Creates a new AggregationDimension object using the specified CubeDimensionID, inserts it to the collection at the specified index and returns the new AggregationDimension created.

Insert(Int32, AggregationDimension)

Inserts the specified AggregationDimension to the collection at the specified index.

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)

Parameters

index
Int32

The zero-based index at which the AggregationDimension is inserted.

item
AggregationDimension

The AggregationDimension to be inserted.

Exceptions

The specified index is not a valid value (less than zero or bigger then the total number of elements).

  • The specified item is a null reference (Nothing in Visual Basic).
  • The specified item already esists in the collection.
  • The CubeDimensionID of the specified AggregationDimension is not valid in the collection.
  • The compatibility-level of the specified AggregationDimension is not valid in the collection.

Applies to

Insert(Int32, String)

Creates a new AggregationDimension object using the specified CubeDimensionID, inserts it to the collection at the specified index and returns the new AggregationDimension created.

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

Parameters

index
Int32

The zero-based index at which the AggregationDimension is inserted.

cubeDimensionId
String

The CubeDimensionID for the new AggregationDimension object.

Returns

The newly created AggregationDimension object.

Exceptions

The specified index is not a valid value (less than zero or bigger then the total number of elements).

The specified CubeDimensionID is not valid in the collection.

Applies to