ConfigurationElement.Item[] 屬性

定義

取得或設定此 ConfigurationElement 物件的屬性 (Property)、屬性 (Attribute) 或子項目。

多載

Item[ConfigurationProperty]

取得或設定此組態項目的屬性 (Property) 或屬性 (Attribute)。

Item[String]

取得或設定此一組態項目的屬性或子項目。

備註

使用這個方法來取得或設定 物件的值 ConfigurationProperty

Item[ConfigurationProperty]

來源:
ConfigurationElement.cs
來源:
ConfigurationElement.cs
來源:
ConfigurationElement.cs

取得或設定此組態項目的屬性 (Property) 或屬性 (Attribute)。

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 object this[System.Configuration.ConfigurationProperty prop] { get; set; }
protected internal object this[System.Configuration.ConfigurationProperty prop] { 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

參數

prop
ConfigurationProperty

要存取的屬性。

屬性值

指定的屬性 (property)、屬性 (attribute) 或子項目。

例外狀況

propnull,或不存在於項目中。

prop 屬於唯讀或已經鎖定。

備註

Item[]使用屬性來取得或設定 物件的值ConfigurationProperty

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

適用於

Item[String]

來源:
ConfigurationElement.cs
來源:
ConfigurationElement.cs
來源:
ConfigurationElement.cs

取得或設定此一組態項目的屬性或子項目。

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 object this[string propertyName] { get; set; }
protected internal object this[string propertyName] { 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

參數

propertyName
String

要存取的 ConfigurationProperty 名稱。

屬性值

指定的屬性 (property)、屬性 (attribute) 或子項目。

例外狀況

prop 屬於唯讀或已經鎖定。

備註

Item[]使用屬性來取得或設定 物件的值ConfigurationProperty

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

適用於