ConfigurationElement.Item[] Eigenschaft
Definition
Ruft eine Eigenschaft, ein Attribut oder ein untergeordnetes Element dieses ConfigurationElement-Objekts ab oder legt diese bzw.dieses fest.Gets or sets a property, attribute, or child element of this ConfigurationElement object.
Überlädt
Item[ConfigurationProperty] |
Ruft eine Eigenschaft oder ein Attribut dieses Konfigurationselements ab oder legt diese bzw. dieses fest.Gets or sets a property or attribute of this configuration element. |
Item[String] |
Ruft eine Eigenschaft, ein Attribut oder ein untergeordnetes Element dieses Konfigurationselements ab oder legt diese(s) fest.Gets or sets a property, attribute, or child element of this configuration element. |
Hinweise
Verwenden Sie diese Methode, um die Werte eines-Objekts zu erhalten oder festzulegen ConfigurationProperty .Use this method to get or set the values of a ConfigurationProperty object.
Item[ConfigurationProperty]
Ruft eine Eigenschaft oder ein Attribut dieses Konfigurationselements ab oder legt diese bzw. dieses fest.Gets or sets a property or attribute of this configuration element.
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 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 public:
property System::Object ^ default[System::Configuration::ConfigurationProperty ^] { System::Object ^ get(System::Configuration::ConfigurationProperty ^ property); void set(System::Configuration::ConfigurationProperty ^ property, System::Object ^ value); };
protected object this[System.Configuration.ConfigurationProperty prop] { get; set; }
protected internal object this[System.Configuration.ConfigurationProperty prop] { get; set; }
protected internal object this[System.Configuration.ConfigurationProperty property] { get; set; }
member this.Item(System.Configuration.ConfigurationProperty) : obj with get, set
Default Protected Property Item(prop As ConfigurationProperty) As Object
Default Protected Friend Property Item(prop As ConfigurationProperty) As Object
Default Protected Friend Property Item(property As ConfigurationProperty) As Object
Parameter
- propproperty
- ConfigurationProperty
Die Eigenschaft, auf die zugegriffen werden soll.The property to access.
Eigenschaftswert
Die angegebene Eigenschaft, das Attribut oder das untergeordnete Element.The specified property, attribute, or child element.
Ausnahmen
prop
ist null
oder ist innerhalb des Elements nicht vorhanden.prop
is null
or does not exist within the element.
prop
ist schreibgeschützt oder gesperrt.prop
is read only or locked.
Hinweise
Verwenden Sie die- Item[] Eigenschaft, um die Werte eines-Objekts zu erhalten oder festzulegen ConfigurationProperty .Use the Item[] property to get or set the values of a ConfigurationProperty object.
In C# ist diese Eigenschaft der Indexer für die ConfigurationSectionCollection-Klasse.In C#, this property is the indexer for the ConfigurationSectionCollection class.
Gilt für:
Item[String]
Ruft eine Eigenschaft, ein Attribut oder ein untergeordnetes Element dieses Konfigurationselements ab oder legt diese(s) fest.Gets or sets a property, attribute, or child element of this configuration element.
protected:
property System::Object ^ default[System::String ^] { System::Object ^ get(System::String ^ propertyName); void set(System::String ^ propertyName, System::Object ^ value); };
protected public:
property System::Object ^ default[System::String ^] { System::Object ^ get(System::String ^ propertyName); void set(System::String ^ propertyName, System::Object ^ value); };
protected public:
property System::Object ^ default[System::String ^] { System::Object ^ get(System::String ^ property_name); void set(System::String ^ property_name, System::Object ^ value); };
protected object this[string propertyName] { get; set; }
protected internal object this[string propertyName] { get; set; }
protected internal object this[string property_name] { get; set; }
member this.Item(string) : obj with get, set
Default Protected Property Item(propertyName As String) As Object
Default Protected Friend Property Item(propertyName As String) As Object
Default Protected Friend Property Item(property_name As String) As Object
Parameter
- propertyNameproperty_name
- String
Der Name der ConfigurationProperty, auf die zugegriffen werden soll.The name of the ConfigurationProperty to access.
Eigenschaftswert
Die angegebene Eigenschaft, das angegebene Attribut oder untergeordnete Element.The specified property, attribute, or child element
Ausnahmen
prop
ist schreibgeschützt oder gesperrt.prop
is read-only or locked.
Hinweise
Verwenden Sie die- Item[] Eigenschaft, um die Werte eines-Objekts zu erhalten oder festzulegen ConfigurationProperty .Use the Item[] property to get or set the values of a ConfigurationProperty object.
In C# ist diese Eigenschaft der Indexer für die ConfigurationSectionCollection-Klasse.In C#, this property is the indexer for the ConfigurationSectionCollection class.