Show / Hide Table of Contents

Class MetadataReaderOptions

Various options to configure the behavior of the EPUB book meta information reader.

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

Constructors

View Source

MetadataReaderOptions(EpubReaderOptionsPreset?)

Initializes a new instance of the MetadataReaderOptions class.

Declaration
public MetadataReaderOptions(EpubReaderOptionsPreset? preset = null)
Parameters
Type Name Description
EpubReaderOptionsPreset? preset

An optional preset to initialize the MetadataReaderOptions class with a predefined set of options.

Properties

View Source

IgnoreLinkWithoutRelError

Gets or sets a value indicating whether the EPUB book meta information reader should ignore the error when a 'link' XML element is missing the 'rel' attribute.

If it's set to false and the 'rel' attribute is not present, then the "Incorrect EPUB metadata link: rel is missing." exception will be thrown. This exception can be suppressed by setting this property to true, in which case the reader will ignore this error and will initialize the Relationships property with an empty list.

Default value is false.

Declaration
public bool IgnoreLinkWithoutRelError { get; set; }
Property type: bool
View Source

SkipLinksWithoutHrefs

Gets or sets a value indicating whether the EPUB book meta information reader should skip 'link' XML elements that are missing the required 'href' attribute.

If it's set to false and the 'href' attribute is not present, then the "Incorrect EPUB metadata link: href is missing." exception will be thrown. This exception can be suppressed by setting this property to true, in which case those 'link' XML elements will be skipped.

Default value is false.

Declaration
public bool SkipLinksWithoutHrefs { get; set; }
Property type: bool
  • View Source
In this article
Back to top Generated by DocFX