ConfigurationElementCollection.IsElementName(String) 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
指出指定的 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 方法以提供自訂行為。