Compartir por


KeyValueConfigurationElement.Value Propiedad

Definición

Obtiene o establece el valor del KeyValueConfigurationElement objeto .

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

Valor de propiedad

Valor de .KeyValueConfigurationElement

Atributos

Ejemplos

En el ejemplo de código siguiente se muestra cómo usar la Value propiedad . Este ejemplo de código forma parte de un ejemplo más grande proporcionado para la información general de la KeyValueConfigurationCollection clase.

// 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

Se aplica a