KeyValueConfigurationCollection.Item[String] Propriedade

Definição

Obtém o objeto KeyValueConfigurationElement com base no parâmetro fornecido.Gets the KeyValueConfigurationElement object based on the supplied parameter.

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.The key of the KeyValueConfigurationElement contained in the collection.

Valor da propriedade

KeyValueConfigurationElement

Um elemento de configuração ou null se a chave não existir na coleção.A configuration element, or null if the key does not exist in the collection.

Comentários

Use a Item[] propriedade para obter um KeyValueConfigurationElement objeto na coleção com base no key parâmetro.Use the Item[] property to get a KeyValueConfigurationElement object in the collection based on the key parameter.

Aplica-se a