ConfigurationElement.Item[] 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 or sets a property, attribute, or child element of this ConfigurationElement object.
Overloads
| Item[ConfigurationProperty] | Gets or sets a property or attribute of this configuration element. | 
| Item[String] | Gets or sets a property, attribute, or child element of this configuration element. | 
Remarks
Use this method to get or set the values of a ConfigurationProperty object.
Item[ConfigurationProperty]
- Source:
- ConfigurationElement.cs
- Source:
- ConfigurationElement.cs
- Source:
- ConfigurationElement.cs
- Source:
- ConfigurationElement.cs
- Source:
- ConfigurationElement.cs
- Source:
- ConfigurationElement.cs
Gets or sets a property or attribute of this configuration element.
protected public:
 property System::Object ^ default[System::Configuration::ConfigurationProperty ^] { System::Object ^ get(System::Configuration::ConfigurationProperty ^ prop); void set(System::Configuration::ConfigurationProperty ^ prop, System::Object ^ value); };protected:
 property System::Object ^ default[System::Configuration::ConfigurationProperty ^] { System::Object ^ get(System::Configuration::ConfigurationProperty ^ prop); void set(System::Configuration::ConfigurationProperty ^ prop, System::Object ^ value); };protected internal object this[System.Configuration.ConfigurationProperty prop] { get; set; }protected object this[System.Configuration.ConfigurationProperty prop] { get; set; }member this.Item(System.Configuration.ConfigurationProperty) : obj with get, setDefault Protected Friend Property Item(prop As ConfigurationProperty) As ObjectDefault Protected Property Item(prop As ConfigurationProperty) As ObjectParameters
The property to access.
Property Value
The specified property, attribute, or child element.
Exceptions
prop is null or does not exist within the element.
prop is read only or locked.
Remarks
Use the Item[] property to get or set the values of a ConfigurationProperty object.
In C#, this property is the indexer for the ConfigurationSectionCollection class.
Applies to
Item[String]
- Source:
- ConfigurationElement.cs
- Source:
- ConfigurationElement.cs
- Source:
- ConfigurationElement.cs
- Source:
- ConfigurationElement.cs
- Source:
- ConfigurationElement.cs
- Source:
- ConfigurationElement.cs
Gets or sets a property, attribute, or child element of this configuration element.
protected public:
 property System::Object ^ default[System::String ^] { System::Object ^ get(System::String ^ propertyName); void set(System::String ^ propertyName, System::Object ^ value); };protected:
 property System::Object ^ default[System::String ^] { System::Object ^ get(System::String ^ propertyName); void set(System::String ^ propertyName, System::Object ^ value); };protected internal object this[string propertyName] { get; set; }protected object this[string propertyName] { get; set; }member this.Item(string) : obj with get, setDefault Protected Friend Property Item(propertyName As String) As ObjectDefault Protected Property Item(propertyName As String) As ObjectParameters
- propertyName
- String
The name of the ConfigurationProperty to access.
Property Value
The specified property, attribute, or child element.
Exceptions
propertyName is read-only or locked.
Remarks
Use the Item[] property to get or set the values of a ConfigurationProperty object.
In C#, this property is the indexer for the ConfigurationSectionCollection class.