Udostępnij za pośrednictwem


KeyValueConfigurationCollection Konstruktor

Definicja

Inicjuje nowe wystąpienie klasy KeyValueConfigurationCollection.

public:
 KeyValueConfigurationCollection();
public KeyValueConfigurationCollection ();
Public Sub New ()

Przykłady

W poniższym przykładzie kodu pokazano, jak używać konstruktora KeyValueConfigurationCollection . Ten przykład kodu jest częścią większego przykładu podanego KeyValueConfigurationCollection na potrzeby przeglądu klasy.

// Get the KeyValueConfigurationCollection 
// from the configuration.
KeyValueConfigurationCollection settings = 
  config.AppSettings.Settings;
' Get the KeyValueConfigurationCollection 
' from the configuration.
Dim settings As KeyValueConfigurationCollection = _
config.AppSettings.Settings()

Dotyczy