# BibliographyWriteOptions

Options for deterministic bibliography writing.

Class 

`OfficeIMO.Bibliography`

**Namespace**

`OfficeIMO.Bibliography`

**Assembly**

`OfficeIMO.Bibliography`

**Source revision**

`ba882f6b0d07` with working tree changes

**Source**

[BibliographyOptions.cs:46](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Bibliography/IO/BibliographyOptions.cs#L46)

**Modifiers**

sealed

Options for deterministic bibliography writing.

## Inheritance

- object
- BibliographyWriteOptions

## Usage

Explore 4 API references to this type

This type appears in these public API surfaces even when no hand-authored example is attached directly to the page.

### Accepted by parameters 4

- Method [BibliographyDocument.Save](/api/bibliography/officeimo-bibliography-bibliographydocument/#method-save-string-officeimo-bibliography-bibliographywriteoptions-threading-cancellationtoken) parameter `options`
- Method [BibliographyDocument.SaveAsync](/api/bibliography/officeimo-bibliography-bibliographydocument/#method-saveasync-string-officeimo-bibliography-bibliographywriteoptions-threading-cancellationtoken) parameter `options`
- Method [BibliographyDocument.ToBytes](/api/bibliography/officeimo-bibliography-bibliographydocument/#method-tobytes-officeimo-bibliography-bibliographywriteoptions-threading-cancellationtoken) parameter `options`
- Method [BibliographyDocument.Write](/api/bibliography/officeimo-bibliography-bibliographydocument/#method-write-officeimo-bibliography-bibliographywriteoptions-threading-cancellationtoken) parameter `options`

Filter members 

Show inherited

## Constructors

`public BibliographyWriteOptions()` [#](#constructor-ctor)

[BibliographyOptions.cs:46](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Bibliography/IO/BibliographyOptions.cs#L46)

## Inherited Methods

`public virtual bool Equals(object? obj)` [#](#method-equals-object)

Inherited from object

Parameters

**obj object? required**

Returns

`bool`

`public virtual int GetHashCode()` [#](#method-gethashcode)

Inherited from object

Returns

`int`

`public Type GetType()` [#](#method-gettype)

Inherited from object

Returns

`Type`

`public virtual string? ToString()` [#](#method-tostring)

Inherited from object

Returns

`string?`

## Properties

`public BibliographyFormat? Format { get; set; }` [#](#property-format)

[BibliographyOptions.cs:42](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Bibliography/IO/BibliographyOptions.cs#L42)

Destination format. Null means the document source format.

`public BibliographyWriterMode Mode { get; set; }` [#](#property-mode)

[BibliographyOptions.cs:44](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Bibliography/IO/BibliographyOptions.cs#L44)

Preserve or canonical mode.

`public string LineEnding { get; set; }` [#](#property-lineending)

[BibliographyOptions.cs:46](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Bibliography/IO/BibliographyOptions.cs#L46)

Line ending used by generated output. Defaults to LF.

`public Encoding Encoding { get; set; }` [#](#property-encoding)

[BibliographyOptions.cs:48](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Bibliography/IO/BibliographyOptions.cs#L48)

Encoding used for generated bytes. Defaults to UTF-8 without a BOM.

`public bool FailOnLoss { get; set; }` [#](#property-failonloss)

[BibliographyOptions.cs:50](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Bibliography/IO/BibliographyOptions.cs#L50)

Throw when conversion diagnostics report an approximation or omission.

<!-- PowerForge markdown artifact sha256:30C0D055801E4044A3992B1028DC60D1F8AB586DF97CD45F80EA84EC9A311803 -->
