ConfigurationElement.Item[] プロパティ
重要
一部の情報は、リリース前に大きく変更される可能性があるプレリリースされた製品に関するものです。 Microsoft は、ここに記載されている情報について、明示または黙示を問わず、一切保証しません。
この ConfigurationElement オブジェクトのプロパティ、属性、または子要素を取得または設定します。
Item[ConfigurationProperty] |
この構成要素のプロパティまたは属性を取得または設定します。 |
Item[String] |
この構成要素のプロパティ、属性、または子要素を取得または設定します。 |
オブジェクトの値を取得または設定するには、このメソッドを 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
が null
です。または要素内に存在しません。
prop
は読み取り専用です。またはロックされています。
注釈
オブジェクトの値を Item[] 取得または設定するには、 プロパティを ConfigurationProperty 使用します。
C# では、このプロパティは ConfigurationSectionCollection クラスのインデクサーです。
適用対象
.NET Framework 4.8.1 およびその他のバージョン
製品 | バージョン |
---|---|
.NET Framework | 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1 |
Windows Desktop | 3.0, 3.1, 5, 6, 7, 8, 9 |
この構成要素のプロパティ、属性、または子要素を取得または設定します。
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 クラスのインデクサーです。
適用対象
.NET Framework 4.8.1 およびその他のバージョン
製品 | バージョン |
---|---|
.NET Framework | 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1 |
Windows Desktop | 3.0, 3.1, 5, 6, 7, 8, 9 |
.NET に関するフィードバック
.NET はオープンソース プロジェクトです。 フィードバックを提供するにはリンクを選択します。