ToDataSetList
Leave feedback
On this page
Creates a list of dataSets from the package.
public IReadOnlyList<IptcDataSet> ToDataSetList()
A list that contains all IPTC dataSets from the package.
This example demonstrates how to read all IPTC IIM datasets from an IPTC metadata package.
using (Metadata metadata = new Metadata(Constants.PsdWithIptc))
{
IIptc root = metadata.GetRootPackage() as IIptc;
if (root != null && root.IptcPackage != null)
{
foreach (var dataSet in root.IptcPackage.ToDataSetList())
{
Console.WriteLine(dataSet.RecordNumber);
Console.WriteLine(dataSet.DataSetNumber);
Console.WriteLine(dataSet.AlternativeName);
Console.WriteLine(dataSet.Value);
}
}
}
- interface IReadOnlyList<T>
- class IptcDataSet
- class IptcRecordSet
- namespace GroupDocs.Metadata.Standards.Iptc
- 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.