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

適用於

另請參閱