Bearbeiten

Freigeben über


KeyValueConfigurationCollection.Item[String] Property

Definition

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

Parameters

key
String

The key of the KeyValueConfigurationElement contained in the collection.

Property Value

A configuration element, or null if the key does not exist in the collection.

Remarks

Use the Item[] property to get a KeyValueConfigurationElement object in the collection based on the key parameter.

Applies to