語言

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

適用於