# OfflineAddressBookReaderOptions

Safety and compatibility limits for read-only OAB sessions.

Class 

`OfficeIMO.Email.AddressBook`

**Namespace**

`OfficeIMO.Email.AddressBook`

**Assembly**

`OfficeIMO.Email`

**Source revision**

`be6c300e4ab1` with working tree changes

**Source**

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

**Modifiers**

sealed

Safety and compatibility limits for read-only OAB sessions.

## Inheritance

- object
- OfflineAddressBookReaderOptions

## Usage

Explore 5 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 [OfflineAddressBookReaderOptions.Default](/api/email/officeimo-email-addressbook-offlineaddressbookreaderoptions/#property-default)
- Property [EmailDataOpenOptions.AddressBook](/api/email/officeimo-email-data-emaildataopenoptions/#property-addressbook)

### Accepted by parameters 3

- Method [OfflineAddressBookInspector.Inspect](/api/email/officeimo-email-addressbook-offlineaddressbookinspector/#method-inspect-string-officeimo-email-addressbook-offlineaddressbookreaderoptions-threading-cancellationtoken) parameter `options`
- Method [OfflineAddressBookSession.Open](/api/email/officeimo-email-addressbook-offlineaddressbooksession/#method-open-string-officeimo-email-addressbook-offlineaddressbookreaderoptions-threading-cancellationtoken) parameter `options`
- 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 `addressBook`

Filter members 

Show inherited

## Constructors

OfflineAddressBookReaderOptions 2 overloads

`public OfflineAddressBookReaderOptions(long maxInputBytes = 68719476736, int maxDiscoveredFiles = 4096, int maxDirectoryDepth = 16, int maxMetadataBytes = 8388608, int maxPropertiesPerTable = 4096, int maxRecordBytes = 16777216, int maxStringBytes = 4194304, int maxBinaryBytes = 16777216, int maxValuesPerProperty = 100000, long maxDeclaredEntries = 100000000, int string8CodePage = 1252, bool retainRawPropertyBytes = true, int maxDirectoryEntries = 100000)` [#](#constructor-ctor-int64-int32-int32-int32-int32-int32-int32-int32-int32-int64-int32-boolean-int32)

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

Creates an immutable reader profile.

Parameters

**maxInputBytes long = 68719476736 optional**

**maxDiscoveredFiles int = 4096 optional**

**maxDirectoryDepth int = 16 optional**

**maxMetadataBytes int = 8388608 optional**

**maxPropertiesPerTable int = 4096 optional**

**maxRecordBytes int = 16777216 optional**

**maxStringBytes int = 4194304 optional**

**maxBinaryBytes int = 16777216 optional**

**maxValuesPerProperty int = 100000 optional**

**maxDeclaredEntries long = 100000000 optional**

**string8CodePage int = 1252 optional**

**retainRawPropertyBytes bool = true optional**

**maxDirectoryEntries int = 100000 optional**

`public OfflineAddressBookReaderOptions(long maxInputBytes, int maxDiscoveredFiles, int maxDirectoryDepth, int maxMetadataBytes, int maxPropertiesPerTable, int maxRecordBytes, int maxStringBytes, int maxBinaryBytes, int maxValuesPerProperty, long maxDeclaredEntries, int string8CodePage, bool retainRawPropertyBytes)` [#](#constructor-ctor-int64-int32-int32-int32-int32-int32-int32-int32-int32-int64-int32-boolean)

[OfflineAddressBookReaderOptions.cs:69](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Email/AddressBook/Reading/OfflineAddressBookReaderOptions.cs#L69)

`EditorBrowsable(1)`

Creates the reader profile exposed before directory-entry discovery was bounded. Retained so already-compiled callers continue to bind to the original constructor signature.

Parameters

**maxInputBytes long required**

**maxDiscoveredFiles int required**

**maxDirectoryDepth int required**

**maxMetadataBytes int required**

**maxPropertiesPerTable int required**

**maxRecordBytes int required**

**maxStringBytes int required**

**maxBinaryBytes int required**

**maxValuesPerProperty int required**

**maxDeclaredEntries long required**

**string8CodePage int required**

**retainRawPropertyBytes bool required**

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

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

Default bounded reader profile.

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

[OfflineAddressBookReaderOptions.cs:86](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Email/AddressBook/Reading/OfflineAddressBookReaderOptions.cs#L86)

Maximum bytes in one OAB component.

`public int MaxDiscoveredFiles { get; }` [#](#property-maxdiscoveredfiles)

[OfflineAddressBookReaderOptions.cs:88](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Email/AddressBook/Reading/OfflineAddressBookReaderOptions.cs#L88)

Maximum .oab files discovered below a directory root.

`public int MaxDirectoryDepth { get; }` [#](#property-maxdirectorydepth)

[OfflineAddressBookReaderOptions.cs:90](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Email/AddressBook/Reading/OfflineAddressBookReaderOptions.cs#L90)

Maximum directory recursion depth.

`public int MaxMetadataBytes { get; }` [#](#property-maxmetadatabytes)

[OfflineAddressBookReaderOptions.cs:92](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Email/AddressBook/Reading/OfflineAddressBookReaderOptions.cs#L92)

Maximum bytes in the version 4 schema metadata structure.

`public int MaxPropertiesPerTable { get; }` [#](#property-maxpropertiespertable)

[OfflineAddressBookReaderOptions.cs:94](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Email/AddressBook/Reading/OfflineAddressBookReaderOptions.cs#L94)

Maximum definitions in either header or entry property table.

`public int MaxRecordBytes { get; }` [#](#property-maxrecordbytes)

[OfflineAddressBookReaderOptions.cs:96](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Email/AddressBook/Reading/OfflineAddressBookReaderOptions.cs#L96)

Maximum bytes in one header or address-book-object record.

`public int MaxStringBytes { get; }` [#](#property-maxstringbytes)

[OfflineAddressBookReaderOptions.cs:98](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Email/AddressBook/Reading/OfflineAddressBookReaderOptions.cs#L98)

Maximum encoded bytes in one string value.

`public int MaxBinaryBytes { get; }` [#](#property-maxbinarybytes)

[OfflineAddressBookReaderOptions.cs:100](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Email/AddressBook/Reading/OfflineAddressBookReaderOptions.cs#L100)

Maximum bytes in one binary value.

`public int MaxValuesPerProperty { get; }` [#](#property-maxvaluesperproperty)

[OfflineAddressBookReaderOptions.cs:102](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Email/AddressBook/Reading/OfflineAddressBookReaderOptions.cs#L102)

Maximum values in one multi-valued property.

`public long MaxDeclaredEntries { get; }` [#](#property-maxdeclaredentries)

[OfflineAddressBookReaderOptions.cs:104](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Email/AddressBook/Reading/OfflineAddressBookReaderOptions.cs#L104)

Maximum declared records in one Full Details file.

`public int String8CodePage { get; }` [#](#property-string8codepage)

[OfflineAddressBookReaderOptions.cs:106](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Email/AddressBook/Reading/OfflineAddressBookReaderOptions.cs#L106)

Code page used for OAB PtypString8 values.

`public bool RetainRawPropertyBytes { get; }` [#](#property-retainrawpropertybytes)

[OfflineAddressBookReaderOptions.cs:108](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Email/AddressBook/Reading/OfflineAddressBookReaderOptions.cs#L108)

Whether decoded MAPI properties retain their original OAB value encoding.

`public int MaxDirectoryEntries { get; }` [#](#property-maxdirectoryentries)

[OfflineAddressBookReaderOptions.cs:110](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Email/AddressBook/Reading/OfflineAddressBookReaderOptions.cs#L110)

Maximum total filesystem entries inspected during directory discovery, including non-OAB entries.

<!-- PowerForge markdown artifact sha256:4CE8F28FF12A0DBC020A142CDA65E022520E7357815A6A2689FB8148A03E968C -->
