Adds or updates the specified dataSet in the appropriate record.
publicvoidSet(IptcDataSetdataSet)
Parameter
Type
Description
dataSet
IptcDataSet
The IPTC dataSet to add/update.
Examples
This example shows how to add or update custom IPTC datasets in a file.
using(Metadatametadata=newMetadata(Constants.PsdWithIptc)){IIptcroot=metadata.GetRootPackage()asIIptc;if(root!=null){// Set the IPTC package if it's missingif(root.IptcPackage==null){root.IptcPackage=newIptcRecordSet();}// Add a know property using the DataSet APIroot.IptcPackage.Set(newIptcDataSet((byte)IptcRecordType.ApplicationRecord,(byte)IptcApplicationRecordDataSet.BylineTitle,"test code sample"));// Add a custom IPTC DataSetroot.IptcPackage.Set(newIptcDataSet(255,255,newbyte[]{1,2,3}));metadata.Save(Constants.OutputPsd);}}