Show / Hide Table of Contents

Class EpubMetadataLanguage

Represents a language of the content of the EPUB book.

See https://www.w3.org/publishing/epub32/epub-packages.html#sec-opf-dclanguage, https://idpf.org/epub/20/spec/OPF_2.0.1_draft.htm#Section2.2.12, and http://purl.org/dc/elements/1.1/language for more information.

Inheritance
object
EpubMetadataLanguage
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 EpubMetadataLanguage

Constructors

View Source

EpubMetadataLanguage(string, string?)

Initializes a new instance of the EpubMetadataLanguage class.

Declaration
public EpubMetadataLanguage(string language, string? id = null)
Parameters
Type Name Description
string language

The language tag.

string id

The unique ID of this language metadata element or null if the language metadata element doesn't have an ID.

Exceptions
Type Condition
ArgumentNullException

The language parameter is null.

Properties

View Source

Id

Gets the unique ID of this language metadata element or null if the language 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 Source

Language

Gets the language tag.

See https://www.w3.org/publishing/epub32/epub-packages.html#sec-opf-dclanguage and https://www.rfc-editor.org/info/bcp47 for more information.

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