語言

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 方法相似,但回傳物件 ICollection 而非 IList 物件。

此方法為操作 O(1) 。

適用於

另請參閱