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.KeyValueConfigurationElement
Public 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")