語言

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()

適用於