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