KeyValueConfigurationElement::Key Property

 

Gets the key of the KeyValueConfigurationElement object.

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

public:
[ConfigurationPropertyAttribute("key", Options = ConfigurationPropertyOptions::IsKey, 
	DefaultValue = "")]
property String^ Key {
	String^ get();
}

Property Value

Type: System::String^

The key of the KeyValueConfigurationElement.

The following code example demonstrates how to use the Key property. This code example is part of a larger example provided for the KeyValueConfigurationCollection class overview.

No code example is currently available or this language may not be supported.

.NET Framework
Available since 2.0
Return to top
Show: