Share via


AggregationInstanceMeasureCollection.IndexOf Method

Definition

Overloads

IndexOf(AggregationInstanceMeasure)

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

IndexOf(String)

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

IndexOf(AggregationInstanceMeasure)

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

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

Parameters

item
AggregationInstanceMeasure

The AggregationInstanceMeasure to locate in the collection.

Returns

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

Applies to

IndexOf(String)

Searches for an AggregationInstanceMeasure 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 AggregationInstanceMeasure to locate in the collection.

Returns

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

Applies to