語言

ConfigurationElement.Item[] 屬性

定義

取得或設定該 ConfigurationElement 物件的屬性、屬性或子元素。

多載

名稱 Description
Item[ConfigurationProperty]

取得或設定這個組態項目的屬性或屬性。

Item[String]

取得或設定這個組態專案的屬性、屬性或子專案。

備註

使用此方法來取得或設定物件 ConfigurationProperty 的值。

Item[ConfigurationProperty]

來源:
ConfigurationElement.cs
來源:
ConfigurationElement.cs
來源:
ConfigurationElement.cs
來源:
ConfigurationElement.cs
來源:
ConfigurationElement.cs
來源:
ConfigurationElement.cs
來源:
ConfigurationElement.cs
來源:
ConfigurationElement.cs
來源:
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
ConfigurationProperty

該物業可供存取。

屬性值

指定的屬性、屬性或子元素。

例外狀況

prop 是 null 或不存在於元素中。

prop 是唯讀或鎖定。

備註

利用這個 Item[] 屬性來取得或設定物件 ConfigurationProperty 的值。

在 C# 中,這個屬性就是類別的 ConfigurationSectionCollection 索引器。

適用於

Item[String]

來源:
ConfigurationElement.cs
來源:
ConfigurationElement.cs
來源:
ConfigurationElement.cs
來源:
ConfigurationElement.cs
來源:
ConfigurationElement.cs
來源:
ConfigurationElement.cs
來源:
ConfigurationElement.cs
來源:
ConfigurationElement.cs
來源:
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 索引器。

適用於