[This topic is pre-release documentation and is subject to change in future releases. Blank topics are included as placeholders.]

Type Parameters

TKey
TValue

A generic dictionary, which allows its keys to be garbage collected if there are no other references to them than from the dictionary itself.

The following tables list the members exposed by the WeakDictionary<(Of TKey, TValue>) generic type.

Public Properties

  NameDescription
Count
Gets the number of elements contained in the ICollection<(Of T>).

IsReadOnly
Gets a value indicating whether the ICollection<(Of T>) is read-only.

Item
Gets or sets the !:TValue with the specified key.

Keys
Gets an ICollection<(Of T>) containing the keys of the IDictionary<(Of TKey, TValue>).

KeysEnum
Gets an enumerator that enumerates the keys.

Values
Gets an ICollection<(Of T>) containing the values in the IDictionary<(Of TKey, TValue>).