ConfigurationElementCollection.BaseIndexOf(ConfigurationElement) Méthode
Définition
Important
Certaines informations portent sur la préversion du produit qui est susceptible d’être en grande partie modifiée avant sa publication. Microsoft exclut toute garantie, expresse ou implicite, concernant les informations fournies ici.
Indique l’index du ConfigurationElementspécifié.
protected:
int BaseIndexOf(System::Configuration::ConfigurationElement ^ element);
protected int BaseIndexOf(System.Configuration.ConfigurationElement element);
member this.BaseIndexOf : System.Configuration.ConfigurationElement -> int
Protected Function BaseIndexOf (element As ConfigurationElement) As Integer
Paramètres
- element
- ConfigurationElement
Pour ConfigurationElement l’emplacement d’index spécifié.
Retours
Index de l’objet spécifié ConfigurationElement; sinon, -1.
Exemples
L’exemple de code suivant montre comment appeler la BaseIndexOf méthode.
Public Function IndexOf(ByVal url As UrlConfigElement) As Integer
Return BaseIndexOf(url)
End Function