## Metadata::Add(const System::Collections::Generic::KeyValuePair\<System::String, System::SharedPtr\<XmpValue\>\>\&) method


Adds pair with key and value into the dictionary.

```cpp
void Aspose::Pdf::Metadata::Add(const System::Collections::Generic::KeyValuePair<System::String, System::SharedPtr<XmpValue>> &item) override
```


| Parameter | Type | Description |
| --- | --- | --- |
| item | const System::Collections::Generic::KeyValuePair\<System::String, System::SharedPtr\<XmpValue\>\>\& | Item to be added. |

## See Also

* Class [KeyValuePair](../../../system.collections.generic/keyvaluepair/)
* Class [String](../../../system/string/)
* Typedef [SharedPtr](../../../system/sharedptr/)
* Class [XmpValue](../../xmpvalue/)
* Class [Metadata](../)
* Namespace [Aspose::Pdf](../../)
* Library [Aspose.PDF for C++](../../../)
## Metadata::Add(const System::String\&, const System::SharedPtr\<System::Object\>\&) method


Adds value to metadata.

```cpp
void Aspose::Pdf::Metadata::Add(const System::String &key, const System::SharedPtr<System::Object> &value)
```


| Parameter | Type | Description |
| --- | --- | --- |
| key | const System::String\& | The key to add. |
| value | const System::SharedPtr\<System::Object\>\& | Value which will be added. |

## See Also

* Class [String](../../../system/string/)
* Typedef [SharedPtr](../../../system/sharedptr/)
* Class [Object](../../../system/object/)
* Class [Metadata](../)
* Namespace [Aspose::Pdf](../../)
* Library [Aspose.PDF for C++](../../../)
## Metadata::Add(const System::String\&, const System::SharedPtr\<XmpValue\>\&) method


Adds value to metadata.

```cpp
void Aspose::Pdf::Metadata::Add(const System::String &key, const System::SharedPtr<XmpValue> &value) override
```


| Parameter | Type | Description |
| --- | --- | --- |
| key | const System::String\& | The key to add. |
| value | const System::SharedPtr\<XmpValue\>\& | Value which will be added. |

## See Also

* Class [String](../../../system/string/)
* Typedef [SharedPtr](../../../system/sharedptr/)
* Class [XmpValue](../../xmpvalue/)
* Class [Metadata](../)
* Namespace [Aspose::Pdf](../../)
* Library [Aspose.PDF for C++](../../../)
## Metadata::Add(const System::String\&, const System::SharedPtr\<XmpPdfAExtensionObject\>\&) method


Adds pdf extension to metadata.

```cpp
void Aspose::Pdf::Metadata::Add(const System::String &prefix, const System::SharedPtr<XmpPdfAExtensionObject> &value)
```


| Parameter | Type | Description |
| --- | --- | --- |
| prefix | const System::String\& | The prefix of extension. |
| value | const System::SharedPtr\<XmpPdfAExtensionObject\>\& | Value which will be added. |

## See Also

* Class [String](../../../system/string/)
* Typedef [SharedPtr](../../../system/sharedptr/)
* Class [XmpPdfAExtensionObject](../../xmppdfaextensionobject/)
* Class [Metadata](../)
* Namespace [Aspose::Pdf](../../)
* Library [Aspose.PDF for C++](../../../)
