LevelCollection.IndexOf Method (Level)

Gets the index of a specified Level.

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

Syntax

'Declaration
Public Function IndexOf ( _
    item As Level _
) As Integer
'Usage
Dim instance As LevelCollection 
Dim item As Level 
Dim returnValue As Integer 

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

Parameters

Return Value

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

See Also

Reference

LevelCollection Class

IndexOf Overload

Microsoft.AnalysisServices Namespace