---
title: "MetadataDictionary..::.Add Method (Object, Object)"
canonical: https://www.graphicsmill.com/docs/gm5/M_Aurigma_GraphicsMill_Codecs_MetadataDictionary_Add_2_df764941.htm
product: "Graphics Mill 5.5 for .NET"
---

This documentation is for the old version. [Go to the latest Graphics Mill docs](https://www.graphicsmill.com/docs/gm/)

# MetadataDictionary.Add Method (Object, Object)
 
Adds one item at the specified key.
 
**Namespace:** [Aurigma.GraphicsMill.Codecs](https://www.graphicsmill.com/docs/gm5/N_Aurigma_GraphicsMill_Codecs.htm.md)
 **Assembly:** Aurigma.GraphicsMill (in Aurigma.GraphicsMill.dll)
 
## Syntax
  
```
Public Overridable Sub Add ( _key As Object, _value As Object _
)
```
 
```csharp
public virtual void Add(Object key,Object value
)
```
 
### Parameters
 
 - key
     - Type: [System.Object](http://msdn2.microsoft.com/en-us/e5kfa45b)
Key of the object to add. Typically it is a number that represents an EXIF or IPTC tag. Most used tags are available as static members of [ExifDictionary](https://www.graphicsmill.com/docs/gm5/T_Aurigma_GraphicsMill_Codecs_ExifDictionary.htm.md) and [IptcDictionary](https://www.graphicsmill.com/docs/gm5/T_Aurigma_GraphicsMill_Codecs_IptcDictionary.htm.md).

 - value
     - Type: [System.Object](http://msdn2.microsoft.com/en-us/e5kfa45b)
An item to add into the dictionary.
 
### Implements
 
[IDictionary.Add(Object, Object)](http://msdn2.microsoft.com/en-us/sdk9s35c)
 
## Remarks
  
If item (or several items) are already stored at specified key, this method fails. To check whether the item with such key exists, use [Contains(Object)](https://www.graphicsmill.com/docs/gm5/M_Aurigma_GraphicsMill_Codecs_MetadataDictionary_Contains_1_d02429b3.htm.md) method.
 
An alternative way to add new entries into the dictionary is to use [Item\[Object\]](https://www.graphicsmill.com/docs/gm5/P_Aurigma_GraphicsMill_Codecs_MetadataDictionary_Item_1_d02429b3.htm.md) method. Unlike Add(Object, Object) method, if the key is found in the dictionary, new item overwrites the old value.
   
## See Also

### Reference

- [MetadataDictionary Class](https://www.graphicsmill.com/docs/gm5/T_Aurigma_GraphicsMill_Codecs_MetadataDictionary.htm.md)
- [Add Overload](https://www.graphicsmill.com/docs/gm5/O_T_Aurigma_GraphicsMill_Codecs_MetadataDictionary_Add.htm.md)
- [Aurigma.GraphicsMill.Codecs Namespace](https://www.graphicsmill.com/docs/gm5/N_Aurigma_GraphicsMill_Codecs.htm.md)
