SortedList.Keys プロパティ

定義

SortedList オブジェクト内のキーを取得します。

public:
 virtual property System::Collections::ICollection ^ Keys { System::Collections::ICollection ^ get(); };
public virtual System.Collections.ICollection Keys { get; }
member this.Keys : System.Collections.ICollection
Public Overridable ReadOnly Property Keys As ICollection

プロパティ値

ICollection オブジェクト内のキーを含むSortedList オブジェクト。

実装

注釈

ICollection オブジェクトは、SortedList オブジェクトのキーの読み取り専用ビューです。 基になる SortedList に加えられた変更は、すぐに ICollectionに反映されます。

ICollectionの要素は、SortedListのキーと同じ順序で並べ替えられます。

このプロパティは GetKeyList メソッドに似ていますが、IList オブジェクトではなくICollection オブジェクトを返します。

このメソッドは O(1) 操作です。

適用対象

こちらもご覧ください