ConfigurationElementCollection.BaseIndexOf(ConfigurationElement) 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
指示指定 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 。
返回
指定的 ConfigurationElement索引;否则为 -1。
示例
下面的代码示例演示如何调用该方法 BaseIndexOf 。
Public Function IndexOf(ByVal url As UrlConfigElement) As Integer
Return BaseIndexOf(url)
End Function