Share via


PerspectiveMeasureCollection.IndexOf Method

Definition

Overloads

IndexOf(PerspectiveMeasure)

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

IndexOf(String)

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

IndexOf(PerspectiveMeasure)

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

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

Parameters

item
PerspectiveMeasure

The PerspectiveMeasure to locate in the collection.

Returns

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

Applies to

IndexOf(String)

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

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

Parameters

measureId
String

The MeasureID of the PerspectiveMeasure to locate in the collection.

Returns

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

Applies to