Redigeeri

Jagamisviis:


ConfigurationElement.Item[] Property

Definition

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

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

prop
ConfigurationProperty

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

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