Condividi tramite


CalculationPropertyCollection.IndexOf Method

Definition

Overloads

IndexOf(CalculationProperty)

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

IndexOf(String)

Searches for a CalculationProperty with the specified Calculation-Reference and returns the zero-based index of it in the collection.

IndexOf(CalculationProperty)

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

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

Parameters

item
CalculationProperty

The CalculationProperty to locate in the collection.

Returns

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

Applies to

IndexOf(String)

Searches for a CalculationProperty with the specified Calculation-Reference and returns the zero-based index of it in the collection.

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

Parameters

calculationReference
String

The Calculation-Reference of the CalculationProperty to locate in the collection.

Returns

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

Applies to