SortedList.Keys 属性

定义

获取对象中的 SortedList 键。

public:
 virtual property System::Collections::ICollection ^ Keys { System::Collections::ICollection ^ get(); };
public virtual System.Collections.ICollection Keys { get; }
member this.Keys : System.Collections.ICollection
Public Overridable ReadOnly Property Keys As ICollection

属性值

包含 ICollection 对象中的 SortedList 键的对象。

实现

注解

ICollection 对象是对象的键的 SortedList 只读视图。 对基础 SortedList 进行的修改立即反映在中 ICollection

元素 ICollection 的排序顺序与键 SortedList的顺序相同。

此属性类似于 GetKeyList 该方法,但返回对象 ICollection 而不是 IList 对象。

此方法是一个 O(1) 操作。

适用于

另请参阅