ConfigurationElementCollection.BaseIndexOf(ConfigurationElement) Metoda

Definicja

Wskazuje indeks określonego ConfigurationElementelementu .

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

Parametry

element
ConfigurationElement

Element ConfigurationElement dla określonej lokalizacji indeksu.

Zwraca

Indeks określonego ConfigurationElement; w przeciwnym razie - 1.

Przykłady

Poniższy przykład kodu pokazuje, jak wywołać metodę BaseIndexOf .

Public Function IndexOf(ByVal url As UrlConfigElement) As Integer
    Return BaseIndexOf(url)
End Function

Dotyczy