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

ICollection 物件,其中含有 SortedList 物件中的值。

實作

備註

物件 ICollection 是 物件值的 SortedList 唯讀檢視。 對基礎 SortedList 所做的修改會立即反映在 中 ICollection

的專案 ICollection 會依照 與 的值 SortedList 相同順序排序。

這個屬性與 GetValueList 方法類似,但會 ICollection 傳回 物件,而不是 IList 物件。

這個方法是 O(1) 作業。

適用於

另請參閱