KeyValueConfigurationElement(String, String) Constructor

Definición

Inicializa una nueva instancia de la clase KeyValueConfigurationElement basándose en los parámetros proporcionados.

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)

Parámetros

value
String

Valor del objeto KeyValueConfigurationElement.

Ejemplos

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

// Create the KeyValueConfigurationElement.
KeyValueConfigurationElement myAdminKeyVal = 
  new KeyValueConfigurationElement(
  "myAdminTool", "admin.aspx");
' Create the KeyValueConfigurationElement.
Dim myAdminKeyVal As KeyValueConfigurationElement = _
  New KeyValueConfigurationElement _
  ("myAdminTool", "admin.aspx")

Se aplica a

Consulte también