Show / Hide Table of Contents

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.

Inheritance
object
EpubMetadataDate
Inherited Members
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
object.ToString()
Namespace: VersOne.Epub.Schema
Assembly: VersOne.Epub.dll
Syntax
public class EpubMetadataDate

Constructors

View Source

EpubMetadataDate(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 null if the event doesn't have a name.

Exceptions
Type Condition
ArgumentNullException

The date parameter is null.

Properties

View Source

Date

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 Source

Event

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 Source

Id

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; }
Property type: string
  • View Source
In this article
Back to top Generated by DocFX