IptcRecordSet Class |
Namespace: GroupDocs.Metadata.Standards.Iptc
The IptcRecordSet type exposes the following members.
Name | Description | |
---|---|---|
![]() | IptcRecordSet |
Initializes a new instance of the IptcRecordSet class.
|
![]() | IptcRecordSet(IptcDataSet) |
Initializes a new instance of the IptcRecordSet class.
|
Name | Description | |
---|---|---|
![]() | ApplicationRecord |
Gets or sets the Application Record.
|
![]() | Count |
Gets the number of metadata properties.
(Inherited from MetadataPackage.) |
![]() | EnvelopeRecord |
Gets or sets the Envelope Record.
|
![]() | ItemString |
Gets the MetadataProperty with the specified name.
(Inherited from MetadataPackage.) |
![]() | ItemByte |
Gets the IptcRecord with the specified number.
|
![]() | ItemByte, Byte |
Gets the IptcDataSet with the specified record and dataSet number.
|
![]() | Keys |
Gets a collection of the metadata property names.
(Inherited from MetadataPackage.) |
![]() | KnowPropertyDescriptors | Obsolete.
Gets a collection of descriptors that contain information about properties accessible through the GroupDocs.Metadata search engine.
(Inherited from MetadataPackage.) |
![]() | MetadataType |
Gets the metadata type.
(Inherited from MetadataPackage.) |
![]() | PropertyDescriptors |
Gets a collection of descriptors that contain information about properties accessible through the GroupDocs.Metadata search engine.
(Inherited from MetadataPackage.) |
Name | Description | |
---|---|---|
![]() | Add |
Adds the specified dataSet to the appropriate record.
The dataSet is considered as repeatable if a dataSet with the specified number already exists.
|
![]() | AddProperties |
Adds known metadata properties satisfying the specified predicate.
The operation is recursive so it affects all nested packages as well.
(Inherited from MetadataPackage.) |
![]() | Clear |
Removes all records from the collection.
|
![]() | Contains |
Determines whether the package contains a metadata property with the specified name.
(Inherited from MetadataPackage.) |
![]() | Equals | (Inherited from Object.) |
![]() | FindProperties |
Finds the metadata properties satisfying the specified predicate.
The search is recursive so it affects all nested packages as well.
(Inherited from MetadataPackage.) |
![]() | GetEnumerator |
Returns an enumerator that iterates through the collection.
(Inherited from MetadataPackage.) |
![]() | GetHashCode | (Inherited from Object.) |
![]() | GetType | (Inherited from Object.) |
![]() | Remove(Byte) |
Removes the record with the specified record number.
|
![]() | Remove(Byte, Byte) |
Removes the dataSet with the specified record and dataSet number.
|
![]() | RemoveProperties |
Removes metadata properties satisfying the specified predicate.
(Inherited from MetadataPackage.) |
![]() | Sanitize |
Removes writable metadata properties from the package.
The operation is recursive so it affects all nested packages as well.
(Inherited from MetadataPackage.) |
![]() ![]() | Set |
Adds or updates the specified dataSet in the appropriate record.
|
![]() | SetProperties |
Sets known metadata properties satisfying the specified predicate.
The operation is recursive so it affects all nested packages as well.
This method is a combination of AddProperties(FuncMetadataProperty, Boolean, PropertyValue) and UpdateProperties(FuncMetadataProperty, Boolean, PropertyValue).
If an existing property satisfies the predicate its value is updated.
If there is a known property missing in the package that satisfies the predicate it is added to the package.
(Inherited from MetadataPackage.) |
![]() ![]() | ToDataSetList |
Creates a list of dataSets from the package.
|
![]() | ToList |
Creates a list from the package.
|
![]() | ToString | (Inherited from Object.) |
![]() | UpdateProperties |
Updates known metadata properties satisfying the specified predicate.
The operation is recursive so it affects all nested packages as well.
(Inherited from MetadataPackage.) |
using (Metadata metadata = new Metadata(Constants.InputJpeg)) { IIptc root = metadata.GetRootPackage() as IIptc; if (root != null) { // Set the IPTC package if it's missing if (root.IptcPackage == null) { root.IptcPackage = new IptcRecordSet(); } if (root.IptcPackage.EnvelopeRecord == null) { root.IptcPackage.EnvelopeRecord = new IptcEnvelopeRecord(); } root.IptcPackage.EnvelopeRecord.DateSent = DateTime.Now; root.IptcPackage.EnvelopeRecord.ProductID = Guid.NewGuid().ToString(); // ... if (root.IptcPackage.ApplicationRecord == null) { root.IptcPackage.ApplicationRecord = new IptcApplicationRecord(); } root.IptcPackage.ApplicationRecord.ByLine = "GroupDocs"; root.IptcPackage.ApplicationRecord.Headline = "test"; root.IptcPackage.ApplicationRecord.ByLineTitle = "code sample"; root.IptcPackage.ApplicationRecord.ReleaseDate = DateTime.Today; // ... metadata.Save(Constants.OutputJpeg); } }