Dela via


PerspectiveKpiCollection.IndexOf Method (PerspectiveKpi)

Gets the index of a specified PerspectiveKpi.

Namespace:  Microsoft.AnalysisServices
Assembly:  Microsoft.AnalysisServices (in Microsoft.AnalysisServices.dll)

Syntax

'Declaration
Public Function IndexOf ( _
    item As PerspectiveKpi _
) As Integer
'Usage
Dim instance As PerspectiveKpiCollection
Dim item As PerspectiveKpi
Dim returnValue As Integer

returnValue = instance.IndexOf(item)
public int IndexOf(
    PerspectiveKpi item
)
public:
int IndexOf(
    PerspectiveKpi^ item
)
member IndexOf : 
        item:PerspectiveKpi -> int 
public function IndexOf(
    item : PerspectiveKpi
) : int

Parameters

Return Value

Type: System.Int32
The zero-based index of the PerspectiveKpi if the object is found; otherwise, -1.