語言

ConfigurationElementCollection.IsElementName(String) 方法

定義

指出指定的 ConfigurationElement 是否存在於 ConfigurationElementCollection中。

protected:
 virtual bool IsElementName(System::String ^ elementName);
protected virtual bool IsElementName(string elementName);
abstract member IsElementName : string -> bool
override this.IsElementName : string -> bool
Protected Overridable Function IsElementName (elementName As String) As Boolean

參數

elementName
String

要驗證元素的名稱。

傳回

true如果該元素存在於集合中;否則,。 false 預設值為 false。

備註

覆寫該 IsElementName 方法以提供自訂行為。

適用於