KeyValueConfigurationCollection.CreateNewElement Metoda

Definicja

Po przesłonięciu w klasie CreateNewElement() pochodnej metoda tworzy nowy KeyValueConfigurationElement obiekt.

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

Zwraca

Nowo utworzony element KeyValueConfigurationElement.

Uwagi

Zastąpij metodę w celu utworzenia CreateNewElement obiektów niestandardowych KeyValueConfigurationElement . Po załadowaniu kolekcji z pliku konfiguracji metoda jest wywoływana CreateNewElement w celu utworzenia poszczególnych elementów. Metoda musi zostać zastąpiona CreateNewElement w klasach, które pochodzą z KeyValueConfigurationCollection klasy .

Dotyczy