Share via


CalculationPropertyCollection.Add Method

Definition

Overloads

Add(CalculationProperty)

Adds the specified CalculationProperty to the end of the collection.

Add(String)

Creates a new CalculationProperty object using the specified Calculation-Reference, adds it to the end of the collection and returns the new CalculationProperty created.

Add(CalculationProperty)

Adds the specified CalculationProperty to the end of the collection.

public int Add (Microsoft.AnalysisServices.CalculationProperty item);
override this.Add : Microsoft.AnalysisServices.CalculationProperty -> int
Public Function Add (item As CalculationProperty) As Integer

Parameters

Returns

The zero-based index at which the CalculationProperty has been added to the collection.

Exceptions

  • 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 name 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

Add(String)

Creates a new CalculationProperty object using the specified Calculation-Reference, adds it to the end of the collection and returns the new CalculationProperty created.

public Microsoft.AnalysisServices.CalculationProperty Add (string calculationReference);
override this.Add : string -> Microsoft.AnalysisServices.CalculationProperty
Public Function Add (calculationReference As String) As CalculationProperty

Parameters

calculationReference
String

The Calculation-Reference for the new CalculationProperty object.

Returns

The newly created CalculationProperty object.

Exceptions

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

Applies to