ConfigurationElement.Item[] プロパティ

定義

この ConfigurationElement オブジェクトのプロパティ、属性、または子要素を取得または設定します。

オーバーロード

Item[ConfigurationProperty]

この構成要素のプロパティまたは属性を取得または設定します。

Item[String]

この構成要素のプロパティ、属性、または子要素を取得または設定します。

注釈

オブジェクトの値を取得または設定するには、このメソッドを ConfigurationProperty 使用します。

Item[ConfigurationProperty]

この構成要素のプロパティまたは属性を取得または設定します。

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

アクセスするプロパティ。

プロパティ値

指定したプロパティ、属性、または子要素。

例外

propnull です。または要素内に存在しません。

prop は読み取り専用です。またはロックされています。

注釈

オブジェクトの値を Item[] 取得または設定するには、 プロパティを ConfigurationProperty 使用します。

C# では、このプロパティは ConfigurationSectionCollection クラスのインデクサーです。

適用対象

Item[String]

この構成要素のプロパティ、属性、または子要素を取得または設定します。

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 の名前。

プロパティ値

指定したプロパティ、属性、または子要素。

例外

prop は読み取り専用です。またはロックされています。

注釈

オブジェクトの値を Item[] 取得または設定するには、 プロパティを ConfigurationProperty 使用します。

C# では、このプロパティは ConfigurationSectionCollection クラスのインデクサーです。

適用対象