Partager via


IndexOf méthode (AggregationInstance)

Gets the index of a specified AggregationInstance.

Espace de noms :  Microsoft.AnalysisServices
Assembly :  Microsoft.AnalysisServices (dans Microsoft.AnalysisServices.dll)

Syntaxe

'Déclaration
Public Function IndexOf ( _
    item As AggregationInstance _
) As Integer
'Utilisation
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

Valeur de retour

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