NameValueConfigurationCollection::Item Property (String^)
.NET Framework (current version)
Gets or sets the NameValueConfigurationElement object based on the supplied parameter.
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.
Property Value
Type: System.Configuration::NameValueConfigurationElement^A NameValueConfigurationElement object.
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.
.NET Framework
Available since 2.0
Available since 2.0
Show: