[This topic is pre-release documentation and is subject to change in future releases. Blank topics are included as placeholders.]
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.
Namespace: Wintellect.PowerCollections
Assembly:
PowerCollections (in PowerCollections.dll)
Syntax
Visual Basic (Declaration) |
---|
Public Function ReplaceMany ( _
key As TKey, _
values As IEnumerable(Of TValue) _
) As Boolean |
Visual C++ |
---|
public:
bool ReplaceMany (
TKey key,
IEnumerable<TValue>^ values
) |
Parameters
- key
- TKey
The key to associate with.
- values
- IEnumerable<(Of <TValue>)>
The new values to be associated with key.
Return Value
Returns true if some values were removed. Returns false if
key was not
present in the dictionary before Replace was called.
See Also