PerspectiveCalculationCollection.Insert Method

Definition

Overloads

Insert(Int32, String)

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

Insert(Int32, String, PerspectiveCalculationType)

Creates a new PerspectiveCalculation object using the specified name and type, inserts it to the collection at the specified index and returns the new PerspectiveCalculation created.

Insert(Int32, PerspectiveCalculation)

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

Insert(Int32, String)

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

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

Parameters

index
Int32

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

name
String

The name for the new PerspectiveCalculation object.

Returns

The newly created PerspectiveCalculation object.

Exceptions

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

The specified name is not valid in the collection.

Applies to

Insert(Int32, String, PerspectiveCalculationType)

Creates a new PerspectiveCalculation object using the specified name and type, inserts it to the collection at the specified index and returns the new PerspectiveCalculation created.

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

Parameters

index
Int32

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

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 index is not a valid value (less than zero or bigger then the total number of elements).

The specified name is not valid in the collection.

Applies to

Insert(Int32, PerspectiveCalculation)

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

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

Parameters

index
Int32

The zero-based index at which the PerspectiveCalculation 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 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