KeyValueConfigurationElement(String, String) コンストラクター

定義

指定されたパラメーターに基づいて、 KeyValueConfigurationElement クラスの新しいインスタンスを初期化します。

public:
 KeyValueConfigurationElement(System::String ^ key, System::String ^ value);
public KeyValueConfigurationElement(string key, string value);
new System.Configuration.KeyValueConfigurationElement : string * string -> System.Configuration.KeyValueConfigurationElement
Public Sub New (key As String, value As 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")

適用対象

こちらもご覧ください