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)

매개 변수

key
String

의 키입니다 KeyValueConfigurationElement.

value
String

의 값입니다 KeyValueConfigurationElement.

예제

다음 코드 예제에서는 생성자를 사용 KeyValueConfigurationElement 하는 방법을 보여 줍니다. 이 코드 예제는 클래스 개요에 제공된 더 큰 예제의 KeyValueConfigurationCollection 일부입니다.

// Create the KeyValueConfigurationElement.
KeyValueConfigurationElement myAdminKeyVal = 
  new KeyValueConfigurationElement(
  "myAdminTool", "admin.aspx");
' Create the KeyValueConfigurationElement.
Dim myAdminKeyVal As KeyValueConfigurationElement = _
  New KeyValueConfigurationElement _
  ("myAdminTool", "admin.aspx")

적용 대상

추가 정보