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 值的順序未指定,但與 方法所 Keys 傳回之相關聯索引鍵 ICollection 的順序相同。

ICollection 回的 不是靜態複本, ICollection 而是參考原始 Hashtable 中的值。 因此,對 的變更 Hashtable 會繼續反映在 中 ICollection

擷取這個屬性的值是 O(1) 作業。

適用於

另請參閱