Note
The enumerator of the returned collection does not support the IEnumerator.Reset method.
public ICollection<TKey> Keys { get; }Public ReadOnly Property Keys As ICollection(Of TKey)
Getpublic:
virtual property ICollection<TKey>^ Keys {
ICollection<TKey>^ get () sealed;
}abstract Keys : ICollection<'TKey> with get
override Keys : ICollection<'TKey> with getThe returned ICollectionT is not a static copy; instead, the ICollectionT refers back to the keys in the original ThreadSafeDictionaryTKey, TValue. Therefore, changes to the ThreadSafeDictionaryTKey, TValue continue to be reflected in the ICollectionT.
Retrieving the value of this property is an O(1) operation.