IptcRecordSetToDataSetList Method
Creates a list of dataSets from the package.

Namespace: GroupDocs.Metadata.Standards.Iptc
Assembly: GroupDocs.Metadata (in GroupDocs.Metadata.dll) Version: 21.8
Syntax
public IReadOnlyList<IptcDataSet> ToDataSetList()

Return Value

Type: IReadOnlyListIptcDataSet
A list that contains all IPTC dataSets from the package.
Examples
This example demonstrates how to read all IPTC IIM datasets from an IPTC metadata package.
C#
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);
        }
    }
}
See Also