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
의 키입니다 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")