Share via


DataSourceCollection.IndexOf Méthode

Définition

Surcharges

IndexOf(DataSource)

Recherche l’objet DataSource spécifié et retourne son index de base zéro dans la collection.

IndexOf(String)

Recherche un objet DataSource avec l’identificateur spécifié et retourne son index de base zéro dans la collection.

IndexOf(DataSource)

Recherche l’objet DataSource spécifié et retourne son index de base zéro dans la collection.

public int IndexOf (Microsoft.AnalysisServices.DataSource item);
override this.IndexOf : Microsoft.AnalysisServices.DataSource -> int
Public Function IndexOf (item As DataSource) As Integer

Paramètres

item
DataSource

DataSource à rechercher dans la collection.

Retours

Index de base zéro de l’objet DataSource dans la collection, s’il est trouvé ; sinon, -1.

S’applique à

IndexOf(String)

Recherche un objet DataSource avec l’identificateur spécifié et retourne son index de base zéro dans la collection.

public int IndexOf (string id);
override this.IndexOf : string -> int
Public Function IndexOf (id As String) As Integer

Paramètres

id
String

Identificateur de l’objet DataSource à localiser dans la collection.

Retours

Index de base zéro de l’objet DataSource dans la collection, s’il est trouvé ; sinon, -1.

S’applique à