Hashtable.Values 屬性
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
得到 和 ICollection 包含 的值。Hashtable
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包含 的 數值 Hashtable。
實作
備註
中ICollection值的順序未明確,但與方法回傳ICollection的相關鍵Keys順序相同。
回傳 ICollection 的 不是靜態副本;而是 ICollection 回溯到原始 Hashtable中的值。 因此,變化 Hashtable 會持續反映在 ICollection中。
取得該屬性的價值是一個 O(1) 操作。