Class EpubMetadataType
Represents a type of the EPUB book. Types are used to indicate that the EPUB book is of a specialized type (e.g., annotations or a dictionary packaged in EPUB format).
See https://www.w3.org/publishing/epub32/epub-packages.html#sec-opf-dctype, https://idpf.org/epub/20/spec/OPF_2.0.1_draft.htm#Section2.2.8, and http://purl.org/dc/elements/1.1/type for more information.
Inherited Members
Namespace: VersOne.Epub.Schema
Assembly: VersOne.Epub.dll
Syntax
public class EpubMetadataType
Constructors
View SourceEpubMetadataType(string, string?)
Initializes a new instance of the EpubMetadataType class.
Declaration
public EpubMetadataType(string type, string? id = null)
Parameters
Type | Name | Description |
---|---|---|
string | type | The name of the type. |
string | id | The unique ID of this type metadata element or |
Exceptions
Type | Condition |
---|---|
ArgumentNullException | The |
Properties
View SourceId
Gets the unique ID of this type metadata element or null
if the type metadata element doesn't have an ID.
See https://www.w3.org/publishing/epub32/epub-packages.html#attrdef-id for more information.
Declaration
public string? Id { get; }
Property type: string
View SourceType
Gets the name of the type.
See https://www.w3.org/publishing/epub32/epub-packages.html#sec-opf-dctype, https://idpf.org/epub/20/spec/OPF_2.0.1_draft.htm#Section2.2.8, and http://purl.org/dc/elements/1.1/type for more information.
Declaration
public string Type { get; }