Partager via


PerspectiveKpiCollection.Add Method

Definition

Overloads

Add(PerspectiveKpi)

Adds the specified PerspectiveKpi to the end of the collection.

Add(String)

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

Add(PerspectiveKpi)

Adds the specified PerspectiveKpi to the end of the collection.

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

Parameters

item
PerspectiveKpi

The PerspectiveKpi to be added.

Returns

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

Add(String)

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

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

Parameters

id
String

The KpiID for the new PerspectiveKpi object.

Returns

The newly created PerspectiveKpi object.

Exceptions

The specified KpiID is not valid in the collection.

Applies to