Class MetadataReaderOptions
Various options to configure the behavior of the EPUB book meta information reader.
Inherited Members
Namespace: VersOne.Epub.Options
Assembly: VersOne.Epub.dll
Syntax
public class MetadataReaderOptions
Constructors
View SourceMetadataReaderOptions(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 SourceIgnoreLinkWithoutRelError
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 SourceSkipLinksWithoutHrefs
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; }