ConfigurationElementCollection.BaseIndexOf(ConfigurationElement) 方法
定义
获取指定的 ConfigurationElement 的索引。Indicates the index of the specified ConfigurationElement.
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
参数
- element
- ConfigurationElement
指定索引位置的 ConfigurationElement。The ConfigurationElement for the specified index location.
返回
指定的 ConfigurationElement 的索引;否则为 -1。The index of the specified ConfigurationElement; otherwise, -1.
示例
下面的代码示例演示如何调用 BaseIndexOf 方法。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