Share via


AggregationInstanceCollection.IndexOf Method (AggregationInstance)

Gets the index of a specified AggregationInstance.

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

Syntax

'Declaration
Public Function IndexOf ( _
    item As AggregationInstance _
) As Integer
'Usage
Dim instance As AggregationInstanceCollection 
Dim item As AggregationInstance 
Dim returnValue As Integer 

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

Parameters

Return Value

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

See Also

Reference

AggregationInstanceCollection Class

IndexOf Overload

Microsoft.AnalysisServices Namespace