Udostępnij za pośrednictwem


PerspectiveKpiCollection.Insert Method

Definition

Overloads

Insert(Int32, PerspectiveKpi)

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

Insert(Int32, String)

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

Insert(Int32, PerspectiveKpi)

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

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

Parameters

index
Int32

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

item
PerspectiveKpi

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

Applies to

Insert(Int32, String)

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

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

Parameters

index
Int32

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

id
String

The KpiID for the new PerspectiveKpi object.

Returns

The newly created PerspectiveKpi object.

Exceptions

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

The specified KpiID is not valid in the collection.

Applies to