ConcurrentDictionary<TKey,TValue>.Values 属性

定义

获取一个集合,该集合包含 . 中的 Dictionary<TKey,TValue>值。

public:
 property System::Collections::Generic::ICollection<TValue> ^ Values { System::Collections::Generic::ICollection<TValue> ^ get(); };
public System.Collections.Generic.ICollection<TValue> Values { get; }
member this.Values : System.Collections.Generic.ICollection<'Value>
Public ReadOnly Property Values As ICollection(Of TValue)

属性值

ICollection<TValue>

一个集合,其中包含值 Dictionary<TKey,TValue>

实现

注解

该属性返回所有值的副本。 它与它不保持同步 ConcurrentDictionary<TKey,TValue>

适用于

另请参阅