ConfigurationElement.Item[] 属性
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
获取或设置此 ConfigurationElement 对象的属性、属性或子元素。
重载
| 名称 | 说明 |
|---|---|
| Item[ConfigurationProperty] |
获取或设置此配置元素的属性或属性。 |
| Item[String] |
获取或设置此配置元素的属性、属性或子元素。 |
注解
使用此方法获取或设置对象的值 ConfigurationProperty 。
Item[ConfigurationProperty]
- Source:
- ConfigurationElement.cs
- Source:
- ConfigurationElement.cs
- Source:
- ConfigurationElement.cs
- Source:
- ConfigurationElement.cs
- Source:
- ConfigurationElement.cs
- Source:
- ConfigurationElement.cs
- Source:
- ConfigurationElement.cs
- Source:
- ConfigurationElement.cs
获取或设置此配置元素的属性或属性。
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
参数
要访问的属性。
属性值
指定的属性、属性或子元素。
例外
prop 元素 null 中不存在或不存在。
prop 为只读或锁定。
注解
使用 Item[] 属性获取或设置对象的值 ConfigurationProperty 。
在 C# 中,此属性是类的 ConfigurationSectionCollection 索引器。
适用于
Item[String]
- Source:
- ConfigurationElement.cs
- Source:
- ConfigurationElement.cs
- Source:
- ConfigurationElement.cs
- Source:
- ConfigurationElement.cs
- Source:
- ConfigurationElement.cs
- Source:
- ConfigurationElement.cs
- Source:
- ConfigurationElement.cs
- Source:
- ConfigurationElement.cs
获取或设置此配置元素的属性、属性或子元素。
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
参数
- propertyName
- String
要访问的名称 ConfigurationProperty 。
属性值
指定的属性、属性或子元素。
例外
propertyName 为只读或锁定。
注解
使用 Item[] 属性获取或设置对象的值 ConfigurationProperty 。
在 C# 中,此属性是类的 ConfigurationSectionCollection 索引器。