---
title: "MetadataDictionary..::.Contains Method "
canonical: https://www.graphicsmill.com/docs/gm5/M_Aurigma_GraphicsMill_Codecs_MetadataDictionary_Contains_1_d02429b3.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.Contains Method 
 
Checks whether the dictionary contains an element with 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 Function Contains ( _key As Object _
) As Boolean
```
 
```csharp
public virtual bool Contains(Object key
)
```
 
### Parameters
 
 - key
     - Type: [System.Object](http://msdn2.microsoft.com/en-us/e5kfa45b)
Key of the object to check. 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).
 
### Return Value
Value that equals to **true** when dictionary contains any data at specified key, otherwise **false**.
 
### Implements
 
[IDictionary.Contains(Object)](http://msdn2.microsoft.com/en-us/9f2wxt1w)
   
## See Also

### Reference

- [MetadataDictionary Class](https://www.graphicsmill.com/docs/gm5/T_Aurigma_GraphicsMill_Codecs_MetadataDictionary.htm.md)
- [Aurigma.GraphicsMill.Codecs Namespace](https://www.graphicsmill.com/docs/gm5/N_Aurigma_GraphicsMill_Codecs.htm.md)
