PerspectiveDimensionCollection.Insert PerspectiveDimensionCollection.Insert PerspectiveDimensionCollection.Insert Method

Definition

Overloads

Insert(Int32, PerspectiveDimension) Insert(Int32, PerspectiveDimension) Insert(Int32, PerspectiveDimension)

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

Insert(Int32, String) Insert(Int32, String) Insert(Int32, String)

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

Insert(Int32, PerspectiveDimension) Insert(Int32, PerspectiveDimension) Insert(Int32, PerspectiveDimension)

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

public void Insert (int index, Microsoft.AnalysisServices.PerspectiveDimension item);
override this.Insert : int * Microsoft.AnalysisServices.PerspectiveDimension -> unit
Public Sub Insert (index As Integer, item As PerspectiveDimension)

Parameters

index
Int32 Int32 Int32

The zero-based index at which the PerspectiveDimension is 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 PerspectiveDimension is not valid in the collection.
  • The compatibility-level of the specified PerspectiveDimension is not valid in the collection.

Insert(Int32, String) Insert(Int32, String) Insert(Int32, String)

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

public Microsoft.AnalysisServices.PerspectiveDimension Insert (int index, string cubeDimensionId);
override this.Insert : int * string -> Microsoft.AnalysisServices.PerspectiveDimension
Public Function Insert (index As Integer, cubeDimensionId As String) As PerspectiveDimension

Parameters

index
Int32 Int32 Int32

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

cubeDimensionId
String String String

The CubeDimensionID for the new PerspectiveDimension object.

Returns

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