KeyValueConfigurationElement(String, String) Construtor

Definição

Inicializa uma nova instância da KeyValueConfigurationElement classe com base nos parâmetros fornecidos.

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

key
String

A tonalidade do KeyValueConfigurationElement.

Exemplos

O exemplo de código seguinte demonstra como usar o KeyValueConfigurationElement construtor. Este exemplo de código faz parte de um exemplo maior fornecido para a KeyValueConfigurationCollection visão geral da classe.

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

Aplica-se a

Ver também