KeyValueConfigurationCollection.CreateNewElement 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
在衍生類別中覆寫時,CreateNewElement() 方法會建立新的 KeyValueConfigurationElement 物件。
protected:
override System::Configuration::ConfigurationElement ^ CreateNewElement();
protected override System.Configuration.ConfigurationElement CreateNewElement ();
override this.CreateNewElement : unit -> System.Configuration.ConfigurationElement
Protected Overrides Function CreateNewElement () As ConfigurationElement
傳回
新建立的 KeyValueConfigurationElement。
備註
覆寫 CreateNewElement 方法來建立自定義 KeyValueConfigurationElement 物件。 從組態檔載入集合時, CreateNewElement 會呼叫 方法來建立個別專案。 必須在 CreateNewElement 衍生自 類別的 KeyValueConfigurationCollection 類別中覆寫 方法。
適用於
意見反應
https://aka.ms/ContentUserFeedback。
即將登場:在 2024 年,我們將逐步淘汰 GitHub 問題作為內容的意見反應機制,並將它取代為新的意見反應系統。 如需詳細資訊,請參閱:提交並檢視相關的意見反應