ConfigurationElement.Item[] Egenskap

Definition

Hämtar eller anger en egenskap, ett attribut eller ett underordnat element i det här ConfigurationElement objektet.

Överlagringar

Name Description
Item[ConfigurationProperty]

Hämtar eller anger en egenskap eller ett attribut för det här konfigurationselementet.

Item[String]

Hämtar eller anger en egenskap, ett attribut eller ett underordnat element i det här konfigurationselementet.

Kommentarer

Använd den här metoden för att hämta eller ange värden för ett ConfigurationProperty objekt.

Item[ConfigurationProperty]

Källa:
ConfigurationElement.cs
Källa:
ConfigurationElement.cs
Källa:
ConfigurationElement.cs
Källa:
ConfigurationElement.cs
Källa:
ConfigurationElement.cs
Källa:
ConfigurationElement.cs
Källa:
ConfigurationElement.cs
Källa:
ConfigurationElement.cs

Hämtar eller anger en egenskap eller ett attribut för det här konfigurationselementet.

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

Parametrar

prop
ConfigurationProperty

Egenskapen för åtkomst.

Egenskapsvärde

Den angivna egenskapen, attributet eller det underordnade elementet.

Undantag

prop finns null eller finns inte i elementet.

prop är skrivskyddad eller låst.

Kommentarer

Använd egenskapen Item[] för att hämta eller ange värden för ett ConfigurationProperty objekt.

I C# är den här egenskapen indexeraren för ConfigurationSectionCollection klassen.

Gäller för

Item[String]

Källa:
ConfigurationElement.cs
Källa:
ConfigurationElement.cs
Källa:
ConfigurationElement.cs
Källa:
ConfigurationElement.cs
Källa:
ConfigurationElement.cs
Källa:
ConfigurationElement.cs
Källa:
ConfigurationElement.cs
Källa:
ConfigurationElement.cs

Hämtar eller anger en egenskap, ett attribut eller ett underordnat element i det här konfigurationselementet.

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

Parametrar

propertyName
String

Namnet på åtkomsten ConfigurationProperty .

Egenskapsvärde

Den angivna egenskapen, attributet eller det underordnade elementet.

Undantag

propertyName är skrivskyddad eller låst.

Kommentarer

Använd egenskapen Item[] för att hämta eller ange värden för ett ConfigurationProperty objekt.

I C# är den här egenskapen indexeraren för ConfigurationSectionCollection klassen.

Gäller för