MultiDictionaryBase<(Of <(<'TKey, TValue>)>)> Methods
The MultiDictionaryBase<(Of <(<'TKey, TValue>)>)> type exposes the following members.
Methods
Name | Description | |
---|---|---|
![]() |
Add(KeyValuePair<(Of <<'(TKey, ICollection<(Of <<'(TValue>)>>)>)>>)) |
Adds a key-value pair to the collection. The value part of the pair must be a collection
of values to associate with the key. If values are already associated with the given
key, the new values are added to the ones associated with that key.
|
![]() |
Add(TKey, TValue) |
Adds a new key-value pair to the dictionary. This method must be overridden in the derived class.
|
![]() |
AddMany |
Adds new values to be associated with a key. If duplicate values are permitted, this method always adds new key-value pairs to the dictionary. If duplicate values are not permitted, and key already has a value equal to one of values associated with it, then that value is replaced, and the number of values associate with key is unchanged. |
![]() |
Clear |
Clears the dictionary. This method must be overridden in the derived class.
|
![]() |
Contains(TKey, TValue) |
Determines if this dictionary contains a key-value pair equal to key and
value. The dictionary is not changed. This method must be overridden in the derived class.
|
![]() |
Contains(KeyValuePair<(Of <<'(TKey, ICollection<(Of <<'(TValue>)>>)>)>>)) |
Determines if this dictionary contains the given key and all of the values associated with that key..
|
![]() |
ContainsKey |
Determines whether a given key is found in the dictionary.
|
![]() |
GetEnumerator |
Enumerate all the keys in the dictionary, and for each key, the collection of values for that key.
|
![]() |
Remove(TKey) |
Removes a key from the dictionary. This method must be overridden in the derived class.
|
![]() |
Remove(TKey, TValue) |
Removes a key-value pair from the dictionary. This method must be overridden in the derived class.
|
![]() |
Remove(KeyValuePair<(Of <<'(TKey, ICollection<(Of <<'(TValue>)>>)>)>>)) |
Removes a set of values from a given key. If all values associated with a key are
removed, then the key is removed also.
|
![]() |
RemoveMany(TKey, IEnumerable<(Of <<'(TValue>)>>)) |
Removes a collection of values from the values associated with a key. If the
last value is removed from a key, the key is removed also.
|
![]() |
RemoveMany(IEnumerable<(Of <<'(TKey>)>>)) |
Remove all of the keys (and any associated values) in a collection
of keys. If a key is not present in the dictionary, nothing happens.
|
![]() |
Replace |
Replaces all values associated with key with the single value value.
|
![]() |
ReplaceMany |
Replaces all values associated with key with a new collection
of values. If the collection does not permit duplicate values, and values has duplicate
items, then only the last of duplicates is added.
|
![]() |
ToString |
Shows the string representation of the dictionary. The string representation contains
a list of the mappings in the dictionary.
|