SortedList.Values 屬性
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
取得 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 方法類似,但會 ICollection 傳回 物件,而不是 IList 物件。
這個方法是 O(1)
作業。