Hashtable.Values 属性

定义

获取一个 ICollection,它包含 Hashtable 中的值。Gets an ICollection containing the values in the 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 中的值。An ICollection containing the values in the Hashtable.

实现

注解

@No__t-0 中值的顺序未指定,但其顺序与 Keys 方法返回的 @no__t 中的关联键的顺序相同。The order of the values in the ICollection is unspecified, but it is the same order as the associated keys in the ICollection returned by the Keys method.

返回 @no__t 0 不是静态副本;相反,ICollection 返回到原始 Hashtable 中的值。The returned ICollection is not a static copy; instead, the ICollection refers back to the values in the original Hashtable. 因此,@no__t 的更改将继续在 @no__t 中反映出来。Therefore, changes to the Hashtable continue to be reflected in the ICollection.

检索此属性的值是 O(1) 操作。Retrieving the value of this property is an O(1) operation.

适用于

另请参阅