KeyValueConfigurationCollection 建構函式

定義

初始化 KeyValueConfigurationCollection 類別的新執行個體。

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

範例

下列程式代碼範例示範如何使用 建 KeyValueConfigurationCollection 構函式。 此程式代碼範例是類別概觀所提供較大範例的 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()

適用於