PropertyInformationCollection クラス
定義
重要
一部の情報は、リリース前に大きく変更される可能性があるプレリリースされた製品に関するものです。 Microsoft は、ここに記載されている情報について、明示または黙示を問わず、一切保証しません。
PropertyInformation オブジェクトのコレクションを格納します。 このクラスは継承できません。
public ref class PropertyInformationCollection sealed : System::Collections::Specialized::NameObjectCollectionBase
public sealed class PropertyInformationCollection : System.Collections.Specialized.NameObjectCollectionBase
[System.Serializable]
public sealed class PropertyInformationCollection : System.Collections.Specialized.NameObjectCollectionBase
type PropertyInformationCollection = class
inherit NameObjectCollectionBase
[<System.Serializable>]
type PropertyInformationCollection = class
inherit NameObjectCollectionBase
Public NotInheritable Class PropertyInformationCollection
Inherits NameObjectCollectionBase
- 継承
- 属性
例
次のコード例は、 PropertyInformationCollection クラスの使用方法を示しています。
// Create EllementInformation object.
ElementInformation elementInfo =
configSection.ElementInformation;
// Create a PropertyInformationCollection object.
PropertyInformationCollection propertyInfoCollection =
elementInfo.Properties;
// Create a PropertyInformation object.
PropertyInformation myPropertyInfo =
propertyInfoCollection["enabled"];
// Display the property value.
Console.WriteLine
("anonymousIdentification Section - Enabled: {0}",
myPropertyInfo.Value);
' Create EllementInformation object.
Dim elementInfo As ElementInformation = _
configSection.ElementInformation()
' Create a PropertyInformationCollection object.
Dim propertyInfoCollection As PropertyInformationCollection = _
elementInfo.Properties()
' Create a PropertyInformation object.
Dim myPropertyInfo As PropertyInformation = _
propertyInfoCollection("enabled")
' Display the property value.
Console.WriteLine _
("anonymousIdentification Section - Enabled: {0}", _
myPropertyInfo.Value)
注釈
PropertyInformationCollection オブジェクトには、PropertyInformation オブジェクトのコレクションが含まれています。 PropertyInformation オブジェクトには、構成内の個々の属性の詳細が含まれています。 PropertyInformationCollection オブジェクトは、関連付けられているNameObjectCollectionBase オブジェクトから派生します。
プロパティ
| 名前 | 説明 |
|---|---|
| Count |
NameObjectCollectionBase インスタンスに含まれるキーと値のペアの数を取得します。 (継承元 NameObjectCollectionBase) |
| IsReadOnly |
NameObjectCollectionBase インスタンスが読み取り専用かどうかを示す値を取得または設定します。 (継承元 NameObjectCollectionBase) |
| Item[String] |
指定したプロパティ名に基づいて、コレクション内の PropertyInformation オブジェクトを取得します。 |
| Keys |
NameObjectCollectionBase.KeysCollection インスタンス内のすべてのキーを含むNameObjectCollectionBase インスタンスを取得します。 (継承元 NameObjectCollectionBase) |
メソッド
明示的なインターフェイスの実装
| 名前 | 説明 |
|---|---|
| ICollection.CopyTo(Array, Int32) |
ターゲット配列の指定したインデックスから始まる互換性のある 1 次元NameObjectCollectionBaseに、Array全体をコピーします。 (継承元 NameObjectCollectionBase) |
| ICollection.IsSynchronized |
NameObjectCollectionBase オブジェクトへのアクセスが同期されているかどうかを示す値を取得します (スレッド セーフ)。 (継承元 NameObjectCollectionBase) |
| ICollection.SyncRoot |
NameObjectCollectionBase オブジェクトへのアクセスを同期するために使用できるオブジェクトを取得します。 (継承元 NameObjectCollectionBase) |
拡張メソッド
| 名前 | 説明 |
|---|---|
| AsParallel(IEnumerable) |
クエリの並列化を有効にします。 |
| AsQueryable(IEnumerable) |
IEnumerable を IQueryableに変換します。 |
| Cast<TResult>(IEnumerable) |
IEnumerable の要素を指定した型にキャストします。 |
| OfType<TResult>(IEnumerable) |
指定した型に基づいて、IEnumerable の要素をフィルター処理します。 |