[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 Methods
Name | Description | |
---|---|---|
![]() | Add | Overloaded. |
![]() | Clear |
Removes all items from the ICollection<(Of T>).
|
![]() | Contains |
Determines whether the ICollection<(Of T>) contains a specific value.
|
![]() | ContainsKey |
Determines whether the IDictionary<(Of TKey, TValue>) contains an element with the specified key.
|
![]() | CopyTo | |
![]() | Equals | (Inherited from Object.) |
![]() | GetEnumerator |
Returns an enumerator that iterates through the collection.
|
![]() | GetHashCode | (Inherited from Object.) |
![]() | GetType | (Inherited from Object.) |
![]() | Remove | Overloaded. |
![]() | RemoveCollectedEntries |
Removes the left-over weak references for entries in the dictionary
whose key or value has already been reclaimed by the garbage
collector. This will reduce the dictionary's Count by the number
of dead key-value pairs that were eliminated.
|
![]() | ToString | (Inherited from Object.) |
![]() | TryGetValue |
Tries the get value.
|
Protected Methods
Name | Description | |
---|---|---|
![]() | Finalize | (Inherited from Object.) |
![]() | MemberwiseClone | (Inherited from Object.) |
Explicit Interface Implementations
Name | Description | |
---|---|---|
![]() ![]() | IEnumerable.System.Collections.IEnumerable.GetEnumerator |
Returns an enumerator that iterates through a collection.
|