# ContentLineWriterOptions

Deterministic content-line serialization policy.

Class 

`OfficeIMO.Email`

**Namespace**

`OfficeIMO.Email`

**Assembly**

`OfficeIMO.Email`

**Source revision**

`be6c300e4ab1` with working tree changes

**Source**

[ContentLineOptions.cs:46](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Email/ContentLines/ContentLineOptions.cs#L46)

**Modifiers**

sealed

Deterministic content-line serialization policy.

## Inheritance

- object
- ContentLineWriterOptions

## Usage

Explore 9 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.

### Returned or exposed by 1

- Property [ContentLineWriterOptions.Default](/api/email/officeimo-email-contentlinewriteroptions/#property-default)

### Accepted by parameters 8

- Method [IcsDocument.Save](/api/email/officeimo-email-icsdocument/#method-save-string-officeimo-email-contentlinewriteroptions) parameter `options`
- Method [IcsDocument.SaveAsync](/api/email/officeimo-email-icsdocument/#method-saveasync-string-officeimo-email-contentlinewriteroptions-threading-cancellationtoken) parameter `options`
- Method [IcsDocument.Serialize](/api/email/officeimo-email-icsdocument/#method-serialize-officeimo-email-contentlinewriteroptions) parameter `options`
- Method [IcsDocument.ToBytes](/api/email/officeimo-email-icsdocument/#method-tobytes-officeimo-email-contentlinewriteroptions) parameter `options`
- Method [VCardDocument.Save](/api/email/officeimo-email-vcarddocument/#method-save-string-officeimo-email-contentlinewriteroptions) parameter `options`
- Method [VCardDocument.SaveAsync](/api/email/officeimo-email-vcarddocument/#method-saveasync-string-officeimo-email-contentlinewriteroptions-threading-cancellationtoken) parameter `options`
- Method [VCardDocument.Serialize](/api/email/officeimo-email-vcarddocument/#method-serialize-officeimo-email-contentlinewriteroptions) parameter `options`
- Method [VCardDocument.ToBytes](/api/email/officeimo-email-vcarddocument/#method-tobytes-officeimo-email-contentlinewriteroptions) parameter `options`

Filter members 

Show inherited

## Constructors

`public ContentLineWriterOptions(int foldAtOctets = 75, long maxOutputBytes = 16777216, Encoding? encoding = null)` [#](#constructor-ctor-int32-int64-text-encoding)

[ContentLineOptions.cs:46](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Email/ContentLines/ContentLineOptions.cs#L46)

Creates a writer policy.

Parameters

**foldAtOctets int = 75 optional**

**maxOutputBytes long = 16777216 optional**

**encoding System.Text.Encoding? = null optional**

## 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 static ContentLineWriterOptions Default { get; }` [#](#property-default)

[ContentLineOptions.cs:43](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Email/ContentLines/ContentLineOptions.cs#L43)

Default RFC-compatible writer policy.

`public int FoldAtOctets { get; }` [#](#property-foldatoctets)

[ContentLineOptions.cs:56](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Email/ContentLines/ContentLineOptions.cs#L56)

Maximum physical line length in encoded octets before folding.

`public long MaxOutputBytes { get; }` [#](#property-maxoutputbytes)

[ContentLineOptions.cs:58](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Email/ContentLines/ContentLineOptions.cs#L58)

Maximum serialized bytes produced by one document.

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

[ContentLineOptions.cs:60](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Email/ContentLines/ContentLineOptions.cs#L60)

Output encoding. UTF-8 without a byte-order mark is the default.

<!-- PowerForge markdown artifact sha256:026E4D3BB8A75E8F3BD097B8C72CD7EE11ABDE7C55C3C8256DA1DEB2E4C8C302 -->
