KeyValueConfigurationCollection.Item Property (String)

 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

Gets the KeyValueConfigurationElement object based on the supplied parameter.

Namespace:   System.Configuration
Assembly:  System.Configuration (in System.Configuration.dll)

public KeyValueConfigurationElement this[
	string key
] { get; }

Parameters

key
Type: System.String

The key of the KeyValueConfigurationElement contained in the collection.

Property Value

Type: System.Configuration.KeyValueConfigurationElement

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

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

.NET Framework
Available since 2.0
Return to top
Show: