# ContentLineReaderOptions

Bounded parser policy shared by first-class iCalendar and vCard readers.

Class 

`OfficeIMO.Email`

**Namespace**

`OfficeIMO.Email`

**Assembly**

`OfficeIMO.Email`

**Source revision**

`be6c300e4ab1` with working tree changes

**Source**

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

**Modifiers**

sealed

Bounded parser policy shared by first-class iCalendar and vCard readers.

## Inheritance

- object
- ContentLineReaderOptions

## 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 2

- Property [ContentLineReaderOptions.Default](/api/email/officeimo-email-contentlinereaderoptions/#property-default)
- Property [EmailDataOpenOptions.ContentLines](/api/email/officeimo-email-data-emaildataopenoptions/#property-contentlines)

### Accepted by parameters 7

- Constructor [EmailDataOpenOptions.EmailDataOpenOptions](/api/email/officeimo-email-data-emaildataopenoptions/#constructor-ctor-officeimo-email-emailreaderoptions-officeimo-email-contentlinereaderoptions-officeimo-email-store-emailstorereaderoptions-officeimo-email-addressbook-offlineaddressbookreaderoptions-nullable-officeimo-email-data-emaildataartifactkind-boolean) parameter `contentLines`
- Method [IcsDocument.Load](/api/email/officeimo-email-icsdocument/#method-load-byte-officeimo-email-contentlinereaderoptions) parameter `options`
- Method [IcsDocument.LoadAsync](/api/email/officeimo-email-icsdocument/#method-loadasync-string-officeimo-email-contentlinereaderoptions-threading-cancellationtoken) parameter `options`
- Method [IcsDocument.Parse](/api/email/officeimo-email-icsdocument/#method-parse-string-officeimo-email-contentlinereaderoptions) parameter `options`
- Method [VCardDocument.Load](/api/email/officeimo-email-vcarddocument/#method-load-byte-officeimo-email-contentlinereaderoptions) parameter `options`
- Method [VCardDocument.LoadAsync](/api/email/officeimo-email-vcarddocument/#method-loadasync-string-officeimo-email-contentlinereaderoptions-threading-cancellationtoken) parameter `options`
- Method [VCardDocument.Parse](/api/email/officeimo-email-vcarddocument/#method-parse-string-officeimo-email-contentlinereaderoptions) parameter `options`

Filter members 

Show inherited

## Constructors

`public ContentLineReaderOptions(long maxInputBytes = 16777216, int maxUnfoldedLineBytes = 1048576, int maxComponents = 100000, int maxProperties = 1000000, int maxNestingDepth = 32, Encoding? encoding = null)` [#](#constructor-ctor-int64-int32-int32-int32-int32-text-encoding)

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

Creates a bounded content-line reader policy.

Parameters

**maxInputBytes long = 16777216 optional**

**maxUnfoldedLineBytes int = 1048576 optional**

**maxComponents int = 100000 optional**

**maxProperties int = 1000000 optional**

**maxNestingDepth int = 32 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 ContentLineReaderOptions Default { get; }` [#](#property-default)

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

Default bounded reader policy.

`public long MaxInputBytes { get; }` [#](#property-maxinputbytes)

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

Maximum source bytes accepted.

`public int MaxUnfoldedLineBytes { get; }` [#](#property-maxunfoldedlinebytes)

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

Maximum UTF-8 byte length of one unfolded logical line.

`public int MaxComponents { get; }` [#](#property-maxcomponents)

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

Maximum components accepted across the document.

`public int MaxProperties { get; }` [#](#property-maxproperties)

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

Maximum properties accepted across the document.

`public int MaxNestingDepth { get; }` [#](#property-maxnestingdepth)

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

Maximum component nesting depth, up to the model traversal limit of 256.

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

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

Encoding used to decode the source. UTF-8 without replacement fallback is the default.

<!-- PowerForge markdown artifact sha256:FED86AABED53B627F23D709F9971DDCFEAEC9044FD84F696D132546BAE493D44 -->
