ConfigurationElement.Item[] プロパティ
定義
重要
一部の情報は、リリース前に大きく変更される可能性があるプレリリースされた製品に関するものです。 Microsoft は、ここに記載されている情報について、明示または黙示を問わず、一切保証しません。
この ConfigurationElement オブジェクトのプロパティ、属性、または子要素を取得または設定します。
オーバーロード
| 名前 | 説明 |
|---|---|
| Item[ConfigurationProperty] |
この構成要素のプロパティまたは属性を取得または設定します。 |
| Item[String] |
この構成要素のプロパティ、属性、または子要素を取得または設定します。 |
注釈
ConfigurationProperty オブジェクトの値を取得または設定するには、このメソッドを使用します。
Item[ConfigurationProperty]
この構成要素のプロパティまたは属性を取得または設定します。
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 internal 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
パラメーター
アクセスするプロパティ。
プロパティ値
指定したプロパティ、属性、または子要素。
例外
prop が null されているか、要素内に存在しません。
prop が読み取り専用またはロックされています。
注釈
ConfigurationProperty オブジェクトの値を取得または設定するには、Item[] プロパティを使用します。
C# では、このプロパティは ConfigurationSectionCollection クラスのインデクサーです。
適用対象
Item[String]
この構成要素のプロパティ、属性、または子要素を取得または設定します。
protected public:
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; }
member this.Item(string) : obj with get, set
Default Protected Friend Property Item(propertyName As String) As Object
パラメーター
- propertyName
- String
アクセスする ConfigurationProperty の名前。
プロパティ値
指定したプロパティ、属性、または子要素。
例外
propertyName が読み取り専用またはロックされています。
注釈
ConfigurationProperty オブジェクトの値を取得または設定するには、Item[] プロパティを使用します。
C# では、このプロパティは ConfigurationSectionCollection クラスのインデクサーです。