Udostępnij za pośrednictwem


PerspectiveKpiCollection.IndexOf Method

Definition

Overloads

IndexOf(PerspectiveKpi)

Searches for the specified PerspectiveKpi and returns the zero-based index of it in the collection.

IndexOf(String)

Searches for a PerspectiveKpi with the specified KpiID and returns the zero-based index of it in the collection.

IndexOf(PerspectiveKpi)

Searches for the specified PerspectiveKpi and returns the zero-based index of it in the collection.

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

Parameters

item
PerspectiveKpi

The PerspectiveKpi to locate in the collection.

Returns

The zero-based index of the PerspectiveKpi in the collection, if found; otherwise, -1.

Applies to

IndexOf(String)

Searches for a PerspectiveKpi with the specified KpiID and returns the zero-based index of it in the collection.

public int IndexOf (string id);
override this.IndexOf : string -> int
Public Function IndexOf (id As String) As Integer

Parameters

id
String

The KpiID of the PerspectiveKpi to locate in the collection.

Returns

The zero-based index of the PerspectiveKpi in the collection, if found; otherwise, -1.

Applies to