Share via


PerspectiveCalculationCollection.Add Method

Definition

Overloads

Add(PerspectiveCalculation)

Adds the specified PerspectiveCalculation to the end of the collection.

Add(String)

Creates a new PerspectiveCalculation object using the specified name, adds it to the end of the collection and returns the new PerspectiveCalculation created.

Add(String, PerspectiveCalculationType)

Creates a new PerspectiveCalculation object using the specified name and type, adds it to the end of the collection and returns the new PerspectiveCalculation created.

Add(PerspectiveCalculation)

Adds the specified PerspectiveCalculation to the end of the collection.

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

Parameters

Returns

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

Applies to

Add(String)

Creates a new PerspectiveCalculation object using the specified name, adds it to the end of the collection and returns the new PerspectiveCalculation created.

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

Parameters

name
String

The name for the new PerspectiveCalculation object.

Returns

The newly created PerspectiveCalculation object.

Exceptions

The specified name is not valid in the collection.

Applies to

Add(String, PerspectiveCalculationType)

Creates a new PerspectiveCalculation object using the specified name and type, adds it to the end of the collection and returns the new PerspectiveCalculation created.

public Microsoft.AnalysisServices.PerspectiveCalculation Add (string name, Microsoft.AnalysisServices.PerspectiveCalculationType type);
override this.Add : string * Microsoft.AnalysisServices.PerspectiveCalculationType -> Microsoft.AnalysisServices.PerspectiveCalculation
Public Function Add (name As String, type As PerspectiveCalculationType) As PerspectiveCalculation

Parameters

name
String

The Name for the new PerspectiveCalculation object.

type
PerspectiveCalculationType

The Type for the new PerspectiveCalculation object.

Returns

The newly created PerspectiveCalculation object.

Exceptions

The specified name is not valid in the collection.

Applies to