Share via


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

적용 대상

추가 정보