ConfigurationElementCollection.BaseIndexOf Method (ConfigurationElement)


The .NET API Reference documentation has a new home. Visit the .NET API Browser on to see the new experience.

Indicates the index of the specified ConfigurationElement.

Namespace:   System.Configuration
Assembly:  System.Configuration (in System.Configuration.dll)

member BaseIndexOf : 
        element:ConfigurationElement -> int


Type: System.Configuration.ConfigurationElement

The ConfigurationElement for the specified index location.

Return Value

Type: System.Int32

The index of the specified ConfigurationElement; otherwise, -1.

The following code example shows how to call the BaseIndexOf method.

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

.NET Framework
Available since 2.0
Return to top