KeyValueConfigurationCollection Konstruktor

Definice

Inicializuje novou instanci KeyValueConfigurationCollection třídy .

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

Příklady

Následující příklad kódu ukazuje, jak použít KeyValueConfigurationCollection konstruktor. Tento příklad kódu je součástí většího příkladu KeyValueConfigurationCollection pro přehled třídy.

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

Platí pro