다음을 통해 공유


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

적용 대상