ConfigurationPropertyCollectionとは? わかりやすく解説

Weblio 辞書 > コンピュータ > .NET Framework クラス ライブラリ リファレンス > ConfigurationPropertyCollectionの意味・解説 

ConfigurationPropertyCollection クラス

メモ : このクラスは、.NET Framework version 2.0 で新しく追加されたものです。

構成要素のプロパティのコレクションを表します。

名前空間: System.Configuration
アセンブリ: System.Configuration (system.configuration.dll 内)
構文構文

Public Class ConfigurationPropertyCollection
    Implements ICollection, IEnumerable
Dim instance As ConfigurationPropertyCollection
public class ConfigurationPropertyCollection
 : ICollection, IEnumerable
public ref class ConfigurationPropertyCollection
 : ICollection, IEnumerable
public class ConfigurationPropertyCollection
 implements ICollection, IEnumerable
public class ConfigurationPropertyCollection
 implements ICollection, IEnumerable
解説解説

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.Object
  System.Configuration.ConfigurationPropertyCollection
スレッド セーフスレッド セーフ
この型の public static (Visual Basic では Shared) メンバはすべて、スレッド セーフです。インスタンス メンバの場合は、スレッド セーフであるとは限りません。
プラットフォームプラットフォーム
バージョン情報バージョン情報
参照参照
関連項目
ConfigurationPropertyCollection メンバ
System.Configuration 名前空間
ConfigurationProperty クラス
ConfigurationSection
ElementInformation
ConfigurationElementCollection クラス
ConfigurationElementCollectionType 列挙体
ConfigurationElement クラス
ConfigurationSection

ConfigurationPropertyCollection コンストラクタ

メモ : このコンストラクタは、.NET Framework version 2.0 で新しく追加されたものです。

ConfigurationPropertyCollection の新しいインスタンスを作成します。

名前空間: System.Configuration
アセンブリ: System.Configuration (system.configuration.dll 内)
構文構文

Dim instance As New ConfigurationPropertyCollection
public ConfigurationPropertyCollection ()
public:
ConfigurationPropertyCollection ()
public ConfigurationPropertyCollection ()
public function ConfigurationPropertyCollection
 ()
解説解説

構成要素に適用する ConfigurationProperty オブジェクトを格納する新しいコレクションを作成するには、ConfigurationPropertyCollection を使用します。

使用例使用例

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();
プラットフォームプラットフォーム
バージョン情報バージョン情報
参照参照
関連項目
ConfigurationPropertyCollection クラス
ConfigurationPropertyCollection メンバ
System.Configuration 名前空間
ConfigurationProperty クラス
ConfigurationSection
ElementInformation
ConfigurationElementCollection クラス
ConfigurationElementCollectionType 列挙体
ConfigurationElement クラス
ConfigurationSection

ConfigurationPropertyCollection プロパティ


パブリック プロパティパブリック プロパティ

参照参照

関連項目

ConfigurationPropertyCollection クラス
System.Configuration 名前空間
ConfigurationProperty クラス
ConfigurationSection
ElementInformation
ConfigurationElementCollection クラス
ConfigurationElementCollectionType 列挙体
ConfigurationElement クラス
ConfigurationSection

ConfigurationPropertyCollection メソッド


パブリック メソッドパブリック メソッド

プロテクト メソッドプロテクト メソッド
明示的インターフェイスの実装明示的インターフェイスの実装
  名前 説明
インターフェイスの明示的な実装 System.Collections.ICollection.CopyTo このコレクションを配列にコピーします。
参照参照

関連項目

ConfigurationPropertyCollection クラス
System.Configuration 名前空間
ConfigurationProperty クラス
ConfigurationSection
ElementInformation
ConfigurationElementCollection クラス
ConfigurationElementCollectionType 列挙体
ConfigurationElement クラス
ConfigurationSection

ConfigurationPropertyCollection メンバ

構成要素のプロパティのコレクションを表します。

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


パブリック コンストラクタパブリック コンストラクタ
  名前 説明
パブリック メソッド ConfigurationPropertyCollection ConfigurationPropertyCollection の新しいインスタンスを作成します。
パブリック プロパティパブリック プロパティ
パブリック メソッドパブリック メソッド
プロテクト メソッドプロテクト メソッド
明示的インターフェイスの実装明示的インターフェイスの実装
  名前 説明
インターフェイスの明示的な実装 System.Collections.ICollection.CopyTo このコレクションを配列にコピーします。
参照参照

関連項目

ConfigurationPropertyCollection クラス
System.Configuration 名前空間
ConfigurationProperty クラス
ConfigurationSection
ElementInformation
ConfigurationElementCollection クラス
ConfigurationElementCollectionType 列挙体
ConfigurationElement クラス
ConfigurationSection



英和和英テキスト翻訳

英語⇒日本語日本語⇒英語

辞書ショートカット

すべての辞書の索引

「ConfigurationPropertyCollection」の関連用語

ConfigurationPropertyCollectionのお隣キーワード
検索ランキング

   

英語⇒日本語
日本語⇒英語
   



ConfigurationPropertyCollectionのページの著作権

   
日本マイクロソフト株式会社日本マイクロソフト株式会社
© 2026 Microsoft.All rights reserved.

©2026 GRAS Group, Inc.RSS