Partager via


Méthode DataItemCollection.IndexOf

Gets the index of a specified DataItem.

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

Syntaxe

'Déclaration
Public Function IndexOf ( _
    item As DataItem _
) As Integer
'Utilisation
Dim instance As DataItemCollection 
Dim item As DataItem 
Dim returnValue As Integer 

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

Paramètres

Valeur de retour

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

Voir aussi

Référence

DataItemCollection Classe

Espace de noms Microsoft.AnalysisServices