SortedList.Keys 屬性
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
取得 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) 。