Share via


KeyValueConfigurationElement.Value 속성

정의

KeyValueConfigurationElement 개체의 값을 가져오거나 설정합니다.

public:
 property System::String ^ Value { System::String ^ get(); void set(System::String ^ value); };
[System.Configuration.ConfigurationProperty("value", DefaultValue="")]
public string Value { get; set; }
public string Value { get; set; }
[<System.Configuration.ConfigurationProperty("value", DefaultValue="")>]
member this.Value : string with get, set
member this.Value : string with get, set
Public Property Value As String

속성 값

KeyValueConfigurationElement의 값입니다.

특성

예제

다음 코드 예제를 사용 하는 방법에 설명 합니다 Value 속성입니다. 이 코드 예제는에 대해 제공 된 큰 예제의 일부는 KeyValueConfigurationCollection 클래스 개요입니다.

// Display each KeyValueConfigurationElement.
foreach (KeyValueConfigurationElement keyValueElement in settings)
{
  Console.WriteLine("Key: {0}", keyValueElement.Key);
  Console.WriteLine("Value: {0}", keyValueElement.Value);
  Console.WriteLine();
}
' Display each KeyValueConfigurationElement.
Dim keyValueElement As KeyValueConfigurationElement
For Each keyValueElement In settings
  Console.WriteLine("Key: {0}", keyValueElement.Key)
  Console.WriteLine("Value: {0}", keyValueElement.Value)
  Console.WriteLine()
Next

적용 대상