SortedList.Values プロパティ

定義

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

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

プロパティ値

ICollection オブジェクト内の値を格納しているSortedList オブジェクト。

実装

注釈

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

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

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

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

適用対象

こちらもご覧ください