KeyValueConfigurationCollection.Item[String] Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
Collaborate with us on GitHub
The source for this content can be found on GitHub, where you can also create and review issues and pull requests. For more information, see our contributor guide.