ConfigurationPropertyCollection クラス

定義

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

public ref class ConfigurationPropertyCollection : System::Collections::ICollection
public class ConfigurationPropertyCollection : System.Collections.ICollection
type ConfigurationPropertyCollection = class
    interface ICollection
    interface IEnumerable
Public Class ConfigurationPropertyCollection
Implements ICollection
継承
ConfigurationPropertyCollection
実装

次の例は、 の使用可能な 1 つの使用例を ConfigurationPropertyCollection示しています。 関連する型の例を参照してください ConfigurationProperty

上記の例で使用した構成からの抜粋を次に示します。

<?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>  

注釈

クラスは ConfigurationPropertyCollection 、構成要素の ConfigurationProperty 属性または ConfigurationElement オブジェクトにすることができるオブジェクトのコレクションを表します。

クラスは ConfigurationProperty 、個々の構成設定を表します。 これにより、特定の構成エンティティ (属性または要素) の名前、型、既定値を取得または設定できます。 追加のオプションを使用すると、属性が必須か、要素キーか、または既定の要素コレクションを表すかを指定できます。

コンストラクター

ConfigurationPropertyCollection()

ConfigurationPropertyCollection クラスの新しいインスタンスを初期化します。

プロパティ

Count

コレクション内のプロパティの数を取得します。

IsSynchronized

コレクションへのアクセスが同期されている (スレッド セーフである) かどうかを示す値を取得します。

Item[String]

指定した名前を持つコレクション項目を取得します。

SyncRoot

コレクションへのアクセスを同期するためのオブジェクトを取得します。

メソッド

Add(ConfigurationProperty)

構成プロパティをコレクションに追加します。

Clear()

コレクションからすべての構成プロパティ オブジェクトを削除します。

Contains(String)

このコレクションに構成プロパティが格納されているかどうかを指定します。

CopyTo(ConfigurationProperty[], Int32)

この ConfigurationPropertyCollection を配列にコピーします。

Equals(Object)

指定されたオブジェクトが現在のオブジェクトと等しいかどうかを判断します。

(継承元 Object)
GetEnumerator()

コレクションに適用する IEnumerator オブジェクトを取得します。

GetHashCode()

既定のハッシュ関数として機能します。

(継承元 Object)
GetType()

現在のインスタンスの Type を取得します。

(継承元 Object)
MemberwiseClone()

現在の Object の簡易コピーを作成します。

(継承元 Object)
Remove(String)

構成プロパティをコレクションから削除します。

ToString()

現在のオブジェクトを表す文字列を返します。

(継承元 Object)

明示的なインターフェイスの実装

ICollection.CopyTo(Array, Int32)

このコレクションを配列にコピーします。

拡張メソッド

Cast<TResult>(IEnumerable)

IEnumerable の要素を、指定した型にキャストします。

OfType<TResult>(IEnumerable)

指定された型に基づいて IEnumerable の要素をフィルター処理します。

AsParallel(IEnumerable)

クエリの並列化を有効にします。

AsQueryable(IEnumerable)

IEnumerableIQueryable に変換します。

適用対象

こちらもご覧ください