Class EpubMetadataDate
The date of the publication or some other event associated with the EPUB book.
See https://www.w3.org/publishing/epub32/epub-packages.html#sec-opf-dcdate, https://idpf.org/epub/20/spec/OPF_2.0.1_draft.htm#Section2.2.7, and http://purl.org/dc/elements/1.1/date for more information.
Inherited Members
Namespace: VersOne.Epub.Schema
Assembly: VersOne.Epub.dll
Syntax
public class EpubMetadataDate
Constructors
View SourceEpubMetadataDate(string, string?, string?)
Initializes a new instance of the EpubMetadataDate class.
Declaration
public EpubMetadataDate(string date, string? id = null, string? @event = null)
Parameters
Type | Name | Description |
---|---|---|
string | date | The date of the event. |
string | id | The unique ID of this EPUB metadata date item. |
string | event | The name of the event represented by this date (e.g., creation, publication, modification, etc.) or |
Exceptions
Type | Condition |
---|---|
ArgumentNullException | The |
Properties
View SourceDate
Gets the date of the event.
See https://www.w3.org/publishing/epub32/epub-packages.html#sec-opf-dcdate, https://idpf.org/epub/20/spec/OPF_2.0.1_draft.htm#Section2.2.7, and http://purl.org/dc/elements/1.1/date for more information.
Declaration
public string Date { get; }
Property type: string
View SourceEvent
Gets the name of the event represented by this date (e.g., creation, publication, modification, etc.) or null
if the event doesn't have a name.
See https://idpf.org/epub/20/spec/OPF_2.0.1_draft.htm#Section2.2.7 for more information.
Declaration
public string? Event { get; }
Property type: string
View SourceId
Gets the unique ID of this EPUB metadata date item.
See https://www.w3.org/publishing/epub32/epub-packages.html#attrdef-id for more information.
Declaration
public string? Id { get; }