語言

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

適用於

另請參閱