---
title: "MediaProcessorMetadataDictionary Class"
canonical: https://www.graphicsmill.com/docs/gm5/T_Aurigma_GraphicsMill_Codecs_MediaProcessorMetadataDictionary.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/)

# MediaProcessorMetadataDictionary Class
 
This class represents a metadata collection.
 
**Namespace:** [Aurigma.GraphicsMill.Codecs](https://www.graphicsmill.com/docs/gm5/N_Aurigma_GraphicsMill_Codecs.htm.md)
 **Assembly:** Aurigma.GraphicsMill.Codecs.MediaProcessor (in Aurigma.GraphicsMill.Codecs.MediaProcessor.dll)
 
## Syntax
  
```
Public NotInheritable Class MediaProcessorMetadataDictionary _Inherits MetadataDictionary
```
 
```csharp
public sealed class MediaProcessorMetadataDictionary : MetadataDictionary
```
 
## Remarks
  
This class contains a dictionary of audio or video file metadata, for example, ID3 fields. Typically you get this class instance from the [Metadata](https://www.graphicsmill.com/docs/gm5/P_Aurigma_GraphicsMill_Codecs_IMediaProcessorMetadataReadSupport_Metadata.htm.md) property of the format reader.
 
Metadata are stored as pairs of keys and values. Keys are field identifiers, and values are actual data provided for the corresponding fields. Most popular key IDs are presented as static fields of this class (such as [Album](https://www.graphicsmill.com/docs/gm5/F_Aurigma_GraphicsMill_Codecs_MediaProcessorMetadataDictionary_Album.htm.md), [Title](https://www.graphicsmill.com/docs/gm5/F_Aurigma_GraphicsMill_Codecs_MediaProcessorMetadataDictionary_Title.htm.md), [TrackNumber](https://www.graphicsmill.com/docs/gm5/F_Aurigma_GraphicsMill_Codecs_MediaProcessorMetadataDictionary_TrackNumber.htm.md), etc).
 
## Examples
 This example shows the general pattern of working with metadata. ```
'Get all metadata
Private Sub GetMetadata(ByVal fileName As String)
    Dim _reader As New WMReader(fileName)
    Dim tags As MediaProcessorMetadataDictionary = _reader.Metadata
    
    'Print all text fields
    For Each key As Object In tags.Keys
        If key <> MediaProcessorMetadataDictionary.SynchronizedLyrics And _
            key <> MediaProcessorMetadataDictionary.AttachedPicture Then
            Console.WriteLine(tags.GetKeyDescription(key).ToString() & _
            ": " & tags(key).ToString())
        End If
    Next
End Sub
``````csharp
//Get all metadata
private void GetMetadata(String fileName)
{
    WMReader _reader = new WMReader(fileName);
    MediaProcessorMetadataDictionary tags = _reader.Metadata;
    
    //Print all text fields
    foreach (System.Object key in tags.Keys)
        if (!key.Equals(MediaProcessorMetadataDictionary.SynchronizedLyrics) &&
            !key.Equals(MediaProcessorMetadataDictionary.AttachedPicture))
            Console.WriteLine(tags.GetKeyDescription(key).ToString() +
                ": " + tags[key].ToString());
}
```
 
## Inheritance Hierarchy
  
- [System.Object](http://msdn2.microsoft.com/en-us/e5kfa45b)
    - [Aurigma.GraphicsMill.LockableObject](https://www.graphicsmill.com/docs/gm5/T_Aurigma_GraphicsMill_LockableObject.htm.md)
        - [Aurigma.GraphicsMill.Codecs.MetadataDictionary](https://www.graphicsmill.com/docs/gm5/T_Aurigma_GraphicsMill_Codecs_MetadataDictionary.htm.md)
            - Aurigma.GraphicsMill.Codecs.MediaProcessorMetadataDictionary
 
## Thread Safety
 Static members of this type are safe for multi-threaded operations. Instance members of this type are safe for multi-threaded operations.
 
## Object Model

[![](https://www.graphicsmill.com/docs/gm5/Aurigma.GraphicsMill.Codecs.MediaProcessor_ObjectModel_30.png)](https://www.graphicsmill.com/docs/gm5/T_Aurigma_GraphicsMill_Codecs_MediaProcessorMetadataDictionary.htm.md)
![](https://www.graphicsmill.com/docs/gm5/ObjectModel2.png)![](https://www.graphicsmill.com/docs/gm5/Aurigma.GraphicsMill.Codecs.MediaProcessor_ObjectModel_31.png)
![](https://www.graphicsmill.com/docs/gm5/ObjectModel2.png)![](https://www.graphicsmill.com/docs/gm5/Aurigma.GraphicsMill.Codecs.MediaProcessor_ObjectModel_32.png)
![](https://www.graphicsmill.com/docs/gm5/ObjectModel2.png)![](https://www.graphicsmill.com/docs/gm5/Aurigma.GraphicsMill.Codecs.MediaProcessor_ObjectModel_33.png)
![](https://www.graphicsmill.com/docs/gm5/ObjectModel1.png)![](https://www.graphicsmill.com/docs/gm5/Aurigma.GraphicsMill.Codecs.MediaProcessor_ObjectModel_34.png)
  
## See Also

### Reference

- [MediaProcessorMetadataDictionary Members](https://www.graphicsmill.com/docs/gm5/AllMembers_T_Aurigma_GraphicsMill_Codecs_MediaProcessorMetadataDictionary.htm.md)
- [Aurigma.GraphicsMill.Codecs Namespace](https://www.graphicsmill.com/docs/gm5/N_Aurigma_GraphicsMill_Codecs.htm.md)
