ConcurrentDictionary<TKey,TValue>.Keys 属性

定义

获取包含中键的 Dictionary<TKey,TValue>集合。

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

属性值

ICollection<TKey>

Dictionary<TKey,TValue>键的集合。

实现

注解

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

适用于

另请参阅