Share via


KeyValueConfigurationCollection.Item[String] Propriedade

Definição

Obtém o objeto KeyValueConfigurationElement com base no parâmetro fornecido.

public:
 property System::Configuration::KeyValueConfigurationElement ^ default[System::String ^] { System::Configuration::KeyValueConfigurationElement ^ get(System::String ^ key); };
public System.Configuration.KeyValueConfigurationElement this[string key] { get; }
member this.Item(string) : System.Configuration.KeyValueConfigurationElement
Default Public ReadOnly Property Item(key As String) As KeyValueConfigurationElement

Parâmetros

key
String

A chave do KeyValueConfigurationElement contida na coleção.

Valor da propriedade

Um elemento de configuração ou null se a chave não existir na coleção.

Comentários

Use a Item[] propriedade para obter um KeyValueConfigurationElement objeto na coleção com base no key parâmetro .

Aplica-se a