## IDictionary::Add method


向容器中添加键值对。

```cpp
virtual void System::Collections::Generic::IDictionary<TKey, TValue>::Add(const TKey &key, const TValue &value)=0
```


| Parameter | Type | 描述 |
| --- | --- | --- |
| 键 | const TKey\& | 要添加的键。 |
| value | const TValue\& | 要添加的值。 |

## 另见

* Class [IDictionary](../)
* Namespace [System::Collections::Generic](../../)
* Library [Aspose.Page for C++](../../../)
