ConfigurationElementCollection.BaseIndexOf(ConfigurationElement) 方法

定義

表示所指定 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

適用於