NameValueConfigurationCollection::Item Property (String^)

 

Gets or sets the NameValueConfigurationElement object based on the supplied parameter.

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

public:
property NameValueConfigurationElement^ default[
	String^ name
] {
	NameValueConfigurationElement^ get(String^ name);
	void set(String^ name, NameValueConfigurationElement^ value);
}

Parameters

name
Type: System::String^

The name of the NameValueConfigurationElement contained in the collection.

Use the Item property to get or set a NameValueConfigurationElement object based on the name parameter.

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

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

.NET Framework
Available since 2.0
Return to top
Show: