MultiDictionary<(Of <(<'TKey, TValue>)>)> Methods
The MultiDictionary<(Of <(<'TKey, TValue>)>)> type exposes the following members.
Methods
Name | Description | |
---|---|---|
![]() |
Add |
Adds a new value to be associated with a key. If duplicate values are permitted, this method always adds a new key-value pair to the dictionary. If duplicate values are not permitted, and key already has a value equal to value associated with it, then that value is replaced with value, and the number of values associate with key is unchanged. |
![]() |
Clear |
Removes all keys and values from the dictionary.
|
![]() |
Clone |
Makes a shallow clone of this dictionary; i.e., if keys or values of the
dictionary are reference types, then they are not cloned. If TKey or TValue is a value type,
then each element is copied as if by simple assignment.
|
![]() |
CloneContents |
Makes a deep clone of this dictionary. A new dictionary is created with a clone of
each entry of this dictionary, by calling ICloneable.Clone on each element. If TKey or TValue is
a value type, then each element is copied as if by simple assignment.
|
![]() |
Contains |
Checks to see if value is associated with key
in the dictionary.
|
![]() |
ContainsKey |
Checks to see if the key is present in the dictionary and has
at least one value associated with it.
|
![]() |
Remove(TKey, TValue) |
Removes a given value from the values associated with a key. If the
last value is removed from a key, the key is removed also.
|
![]() |
Remove(TKey) |
Removes a key and all associated values from the dictionary. If the
key is not present in the dictionary, it is unchanged and false is returned.
|