ToList
Leave feedback
On this page
Creates a list from the package.
public IReadOnlyList<RawTag> ToList()
A list that contains all Raw tags from the package.
This example demonstrates how to read all EXIF tags extracted from a file.
using (Metadata metadata = new Metadata(Constants.JpegWithExif))
{
IExif root = metadata.GetRootPackage() as IExif;
if (root != null && root.ExifPackage != null)
{
const string pattern = "{0} = {1}";
foreach (RawTag tag in root.ExifPackage.ToList())
{
Console.WriteLine(pattern, tag.TagID, tag.Value);
}
foreach (RawTag tag in root.ExifPackage.ExifIfdPackage.ToList())
{
Console.WriteLine(pattern, tag.TagID, tag.Value);
}
foreach (RawTag tag in root.ExifPackage.GpsPackage.ToList())
{
Console.WriteLine(pattern, tag.TagID, tag.Value);
}
}
}
- interface IReadOnlyList<T>
- class RawTag
- class RawDictionaryBasePackage
- namespace GroupDocs.Metadata.Formats.Raw
- assembly GroupDocs.Metadata
Was this page helpful?
Any additional feedback you'd like to share with us?
Please tell us how we can improve this page.
Thank you for your feedback!
We value your opinion. Your feedback will help us improve our documentation.