ConfigurationElementCollection.IsElementName(String) 方法
定义
指示指定的 ConfigurationElement 是否存在于 ConfigurationElementCollection 中。Indicates whether the specified ConfigurationElement exists in the 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
要验证的元素的名称。The name of the element to verify.
返回
如果集合中存在该元素,则为 true;否则为 false。true if the element exists in the collection; otherwise, false. 默认值为 false。The default is false.
注解
重写 IsElementName 方法以提供自定义行为。Override the IsElementName method to provide custom behavior.