KeyValueConfigurationElement(String, String) 构造函数   
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
基于所提供的参数初始化 KeyValueConfigurationElement 类的新实例。
public:
 KeyValueConfigurationElement(System::String ^ key, System::String ^ value);public KeyValueConfigurationElement (string key, string value);new System.Configuration.KeyValueConfigurationElement : string * string -> System.Configuration.KeyValueConfigurationElementPublic Sub New (key As String, value As String)参数
- key
- String
- value
- String
示例
下面的代码示例演示如何使用 KeyValueConfigurationElement 构造函数。 此代码示例是为类概述提供的更大示例的 KeyValueConfigurationCollection 一部分。
// Create the KeyValueConfigurationElement.
KeyValueConfigurationElement myAdminKeyVal = 
  new KeyValueConfigurationElement(
  "myAdminTool", "admin.aspx");
' Create the KeyValueConfigurationElement.
Dim myAdminKeyVal As KeyValueConfigurationElement = _
  New KeyValueConfigurationElement _
  ("myAdminTool", "admin.aspx")