Bagikan melalui


KeyValueConfigurationCollection Konstruktor

Definisi

Menginisialisasi instans baru kelas KeyValueConfigurationCollection.

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

Contoh

Contoh kode berikut menunjukkan cara menggunakan KeyValueConfigurationCollection konstruktor. Contoh kode ini adalah bagian dari contoh yang lebih besar yang disediakan untuk KeyValueConfigurationCollection gambaran umum kelas.

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

Berlaku untuk