語言

Hashtable.Values 屬性

定義

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

適用於

另請參閱