ConfigurationPropertyCollection クラス
アセンブリ: System.Configuration (system.configuration.dll 内)


ConfigurationPropertyCollection クラスは、構成要素の属性または ConfigurationElement オブジェクトとなる、ConfigurationProperty オブジェクトのコレクションを表します。
ConfigurationProperty クラスは、個々の構成設定を表します。このクラスを使用すると、特定の構成エンティティ (属性または要素) の名前、型、および既定値の取得または設定を行うことができます。追加オプションを使用すると、属性が必須かどうか、属性が要素キーであるかどうか、または属性が既定の要素コレクションを表すかどうかを指定できます。

ConfigurationPropertyCollection の使用例を次に示します。関連する型である ConfigurationProperty の例を参照してください。
' Return the initialized property bag ' for the configuration element. ' The collection (property bag) that contains ' the properties is declared as: ' ConfigurationPropertyCollection _Properties; Protected Overrides ReadOnly Property Properties() _ As ConfigurationPropertyCollection Get Return _Properties End Get End Property
// Return the initialized property bag // for the configuration element. // The collection (property bag) that contains // the properties is declared as: // ConfigurationPropertyCollection _Properties; protected override ConfigurationPropertyCollection Properties { get { return _Properties; } }
<?xml version="1.0" encoding="utf-8"?> <configuration> <configSections> <section name="CustomSection" type="Samples.AspNet, ConfigurationProperty, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null" allowDefinition="Everywhere" allowExeDefinition="MachineToApplication" restartOnExternalChanges="true" /> </configSections> <CustomSection fileName="default.txt" alias="alias.txt" maxUsers="1000" maxIdleTime="00:05:00" /> </configuration>

System.Configuration.ConfigurationPropertyCollection


Windows 98, Windows 2000 SP4, Windows Millennium Edition, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition
開発プラットフォームの中には、.NET Framework によってサポートされていないバージョンがあります。サポートされているバージョンについては、「システム要件」を参照してください。


ConfigurationPropertyCollection コンストラクタ
アセンブリ: System.Configuration (system.configuration.dll 内)



ConfigurationPropertyCollection コンストラクタを使用する例を次に示します。
' Property collection initialization. ' The collection (property bag) that contains ' the properties is declared as: ' ConfigurationPropertyCollection _Properties; _Properties = New ConfigurationPropertyCollection()
// Property collection initialization. // The collection (property bag) that contains // the properties is declared as: // ConfigurationPropertyCollection _Properties; _Properties = new ConfigurationPropertyCollection();

Windows 98, Windows 2000 SP4, Windows Millennium Edition, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition
開発プラットフォームの中には、.NET Framework によってサポートされていないバージョンがあります。サポートされているバージョンについては、「システム要件」を参照してください。


ConfigurationPropertyCollection プロパティ

名前 | 説明 | |
---|---|---|
![]() | Count | コレクション内のプロパティの数を取得します。 |
![]() | IsSynchronized | コレクションへのアクセスが同期されている (スレッド セーフである) かどうかを示す値を取得します。 |
![]() | Item | コレクションにアクセスできるようにします。 |
![]() | SyncRoot | コレクションへのアクセスを同期するためのオブジェクトを取得します。 |

ConfigurationPropertyCollection メソッド

名前 | 説明 | |
---|---|---|
![]() | Add | 構成プロパティをコレクションに追加します。 |
![]() | Clear | コレクションからすべての構成プロパティ オブジェクトを削除します。 |
![]() | Contains | このコレクションに構成プロパティが格納されているかどうかを指定します。 |
![]() | CopyTo | この ConfigurationPropertyCollection を配列にコピーします。 |
![]() | Equals | オーバーロードされます。 2 つの Object インスタンスが等しいかどうかを判断します。 ( Object から継承されます。) |
![]() | GetEnumerator | コレクションに適用する IEnumerator オブジェクトを取得します。 |
![]() | GetHashCode | 特定の型のハッシュ関数として機能します。GetHashCode は、ハッシュ アルゴリズムや、ハッシュ テーブルのようなデータ構造での使用に適しています。 ( Object から継承されます。) |
![]() | GetType | 現在のインスタンスの Type を取得します。 ( Object から継承されます。) |
![]() | ReferenceEquals | 指定した複数の Object インスタンスが同一かどうかを判断します。 ( Object から継承されます。) |
![]() | Remove | 構成プロパティをコレクションから削除します。 |
![]() | ToString | 現在の Object を表す String を返します。 ( Object から継承されます。) |

名前 | 説明 | |
---|---|---|
![]() | Finalize | Object がガベージ コレクションにより収集される前に、その Object がリソースを解放し、その他のクリーンアップ操作を実行できるようにします。 ( Object から継承されます。) |
![]() | MemberwiseClone | 現在の Object の簡易コピーを作成します。 ( Object から継承されます。) |


ConfigurationPropertyCollection メンバ
ConfigurationPropertyCollection データ型で公開されるメンバを以下の表に示します。


名前 | 説明 | |
---|---|---|
![]() | Count | コレクション内のプロパティの数を取得します。 |
![]() | IsSynchronized | コレクションへのアクセスが同期されている (スレッド セーフである) かどうかを示す値を取得します。 |
![]() | Item | コレクションにアクセスできるようにします。 |
![]() | SyncRoot | コレクションへのアクセスを同期するためのオブジェクトを取得します。 |

名前 | 説明 | |
---|---|---|
![]() | Add | 構成プロパティをコレクションに追加します。 |
![]() | Clear | コレクションからすべての構成プロパティ オブジェクトを削除します。 |
![]() | Contains | このコレクションに構成プロパティが格納されているかどうかを指定します。 |
![]() | CopyTo | この ConfigurationPropertyCollection を配列にコピーします。 |
![]() | Equals | オーバーロードされます。 2 つの Object インスタンスが等しいかどうかを判断します。 (Object から継承されます。) |
![]() | GetEnumerator | コレクションに適用する IEnumerator オブジェクトを取得します。 |
![]() | GetHashCode | 特定の型のハッシュ関数として機能します。GetHashCode は、ハッシュ アルゴリズムや、ハッシュ テーブルのようなデータ構造での使用に適しています。 (Object から継承されます。) |
![]() | GetType | 現在のインスタンスの Type を取得します。 (Object から継承されます。) |
![]() | ReferenceEquals | 指定した複数の Object インスタンスが同一かどうかを判断します。 (Object から継承されます。) |
![]() | Remove | 構成プロパティをコレクションから削除します。 |
![]() | ToString | 現在の Object を表す String を返します。 (Object から継承されます。) |

名前 | 説明 | |
---|---|---|
![]() | Finalize | Object がガベージ コレクションにより収集される前に、その Object がリソースを解放し、その他のクリーンアップ操作を実行できるようにします。 (Object から継承されます。) |
![]() | MemberwiseClone | 現在の Object の簡易コピーを作成します。 (Object から継承されます。) |


Weblioに収録されているすべての辞書からConfigurationPropertyCollectionを検索する場合は、下記のリンクをクリックしてください。

- ConfigurationPropertyCollectionのページへのリンク