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