Add Method (TKey, TValue)
From Wintellect PowerCollections
[This topic is pre-release documentation and is subject to change in future releases. Blank topics are included as placeholders.]
Adds the given key-value pair to the underlying dictionary of this view.
If key is not within the range of this view, an
ArgumentException is thrown.
Namespace: Wintellect.PowerCollections
Assembly:
PowerCollections (in PowerCollections.dll)
Syntax
| C# |
|---|
public override sealed void Add( TKey key, TValue value ) |
| Visual Basic (Declaration) |
|---|
Public Overrides NotOverridable Sub Add ( _ key As TKey, _ value As TValue _ ) |
| Visual C++ |
|---|
public: virtual void Add ( TKey key, TValue value ) override sealed |
Parameters
- key
- TKey
- value
- TValue
Exceptions
| Exception | Condition |
|---|---|
| System..::ArgumentException | key is not within the range of this view. |