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

适用于