Partager via


CalculationPropertyCollection.Insert Method

Definition

Overloads

Insert(Int32, CalculationProperty)

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

Insert(Int32, String)

Creates a new CalculationProperty object using the specified Calculation-Reference, inserts it to the collection at the specified index and returns the new CalculationProperty created.

Insert(Int32, CalculationProperty)

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

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

Parameters

index
Int32

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

item
CalculationProperty

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

Applies to

Insert(Int32, String)

Creates a new CalculationProperty object using the specified Calculation-Reference, inserts it to the collection at the specified index and returns the new CalculationProperty created.

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

Parameters

index
Int32

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

calculationReference
String

The Calculation-Reference for the new CalculationProperty object.

Returns

The newly created CalculationProperty object.

Exceptions

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

The specified Calculation-Reference is not valid in the collection.

Applies to