Jaa


PerspectiveMeasureCollection.Insert Method

Definition

Overloads

Insert(Int32, PerspectiveMeasure)

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

Insert(Int32, String)

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

Insert(Int32, PerspectiveMeasure)

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

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

Parameters

index
Int32

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

item
PerspectiveMeasure

The PerspectiveMeasure 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 MeasureID of the specified PerspectiveMeasure is not valid in the collection.
  • The compatibility-level of the specified PerspectiveMeasure is not valid in the collection.

Applies to

Insert(Int32, String)

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

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

Parameters

index
Int32

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

measureId
String

The MeasureID for the new PerspectiveMeasure object.

Returns

The newly created PerspectiveMeasure object.

Exceptions

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

The specified MeasureID is not valid in the collection.

Applies to