语言

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

适用于

另请参阅