ConfigurationElement.Item[] Property
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.
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. |
Use this method to get or set the values of a ConfigurationProperty object.
- 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, set
Default Protected Friend Property Item(prop As ConfigurationProperty) As Object
Default Protected Property Item(prop As ConfigurationProperty) As Object
Parameters
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
.NET 9 (package-provided) en andere versies
Product | Versies |
---|---|
.NET | 8 (package-provided), 9 (package-provided) |
.NET Framework | 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7 (package-provided), 4.7, 4.7.1 (package-provided), 4.7.1, 4.7.2 (package-provided), 4.7.2, 4.8 (package-provided), 4.8, 4.8.1 |
.NET Standard | 2.0 (package-provided) |
Windows Desktop | 3.0, 3.1, 5, 6, 7, 8, 9 |
- 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, set
Default Protected Friend Property Item(propertyName As String) As Object
Default Protected Property Item(propertyName As String) As Object
Parameters
- propertyName
- String
The name of the ConfigurationProperty to access.
Property Value
The specified property, attribute, or child element.
Exceptions
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
.NET 9 (package-provided) en andere versies
Product | Versies |
---|---|
.NET | 8 (package-provided), 9 (package-provided) |
.NET Framework | 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7 (package-provided), 4.7, 4.7.1 (package-provided), 4.7.1, 4.7.2 (package-provided), 4.7.2, 4.8 (package-provided), 4.8, 4.8.1 |
.NET Standard | 2.0 (package-provided) |
Windows Desktop | 3.0, 3.1, 5, 6, 7, 8, 9 |
Feedback over .NET
.NET is een opensourceproject. Selecteer een koppeling om feedback te geven: