ConfigurationElement.Item[] プロパティ

定義

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

オーバーロード

Item[ConfigurationProperty]

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

Item[String]

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

注釈

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

Item[ConfigurationProperty]

ソース:
ConfigurationElement.cs
ソース:
ConfigurationElement.cs
ソース:
ConfigurationElement.cs

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

C#
protected object this[System.Configuration.ConfigurationProperty prop] { get; set; }
C#
protected internal object this[System.Configuration.ConfigurationProperty prop] { get; set; }

パラメーター

prop
ConfigurationProperty

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

プロパティ値

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

例外

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

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

Item[String]

ソース:
ConfigurationElement.cs
ソース:
ConfigurationElement.cs
ソース:
ConfigurationElement.cs

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

C#
protected object this[string propertyName] { get; set; }
C#
protected internal object this[string propertyName] { get; set; }

パラメーター

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