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) 。