Note
The enumerator of the returned collection supports the IEnumerator.Reset method.
public ICollection<TKey> Keys { get; }
Public ReadOnly Property Keys As ICollection(Of TKey)
Get
public:
virtual property ICollection<TKey>^ Keys {
ICollection<TKey>^ get () sealed;
}
abstract Keys : ICollection<'TKey> with get
override Keys : ICollection<'TKey> with get
The returned collection represents a moment-in-time snapshot of the keys of the LockingDictionaryTKey, TValue. It does not reflect any updates to the dictionary after Keys were obtained. The collection is safe to use concurrently with reads from and writes to the dictionary.
This property has an O(n) cost where n is the number of elements in the dictionary.