KeyValueConfigurationCollection Konstruktor
Definition
Viktigt
En del information gäller för förhandsversionen av en produkt och kan komma att ändras avsevärt innan produkten blir allmänt tillgänglig. Microsoft lämnar inga garantier, uttryckliga eller underförstådda, avseende informationen som visas här.
Initierar en ny instans av KeyValueConfigurationCollection klassen.
public:
KeyValueConfigurationCollection();
public KeyValueConfigurationCollection();
Public Sub New ()
Exempel
Följande kodexempel visar hur du använder KeyValueConfigurationCollection konstruktorn. Det här kodexemplet är en del av ett större exempel som tillhandahålls för klassöversikten KeyValueConfigurationCollection .
// Get the KeyValueConfigurationCollection
// from the configuration.
KeyValueConfigurationCollection settings =
config.AppSettings.Settings;
' Get the KeyValueConfigurationCollection
' from the configuration.
Dim settings As KeyValueConfigurationCollection = _
config.AppSettings.Settings()