# EmailStoreItemReadOptions

Controls which parts are decoded when one selected store item is read.

Class 

`OfficeIMO.Email.Store`

**Namespace**

`OfficeIMO.Email.Store`

**Assembly**

`OfficeIMO.Email`

**Source revision**

`be6c300e4ab1` with working tree changes

**Source**

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

**Modifiers**

sealed

Controls which parts are decoded when one selected store item is read.

## Inheritance

- object
- EmailStoreItemReadOptions

## Usage

Explore 2 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 [EmailStoreItemReadOptions.Default](/api/email/officeimo-email-store-emailstoreitemreadoptions/#property-default)

### Accepted by parameters 1

- Method [EmailStoreSession.ReadItem](/api/email/officeimo-email-store-emailstoresession/#method-readitem-officeimo-email-store-emailstoreitemreference-officeimo-email-store-emailstoreitemreadoptions-threading-cancellationtoken) parameter `options`

Filter members 

Show inherited

## Constructors

`public EmailStoreItemReadOptions(EmailStoreItemReadParts parts = All, long? maxDecodedPropertyBytes = null, bool preferStreamingAttachmentContent = false)` [#](#constructor-ctor-officeimo-email-store-emailstoreitemreadparts-nullable-system-int64-boolean)

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

Creates selective item options. Dependent parts are included automatically.

Parameters

**parts OfficeIMO.Email.Store.EmailStoreItemReadParts = All optional**

**maxDecodedPropertyBytes long? = null optional**

**preferStreamingAttachmentContent bool = false optional**

## Methods

`public bool Includes(EmailStoreItemReadParts part)` [#](#method-includes-officeimo-email-store-emailstoreitemreadparts)

[EmailStoreItemReadOptions.cs:42](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Email/Store/Reading/EmailStoreItemReadOptions.cs#L42)

Returns true when a part is requested.

Parameters

**part OfficeIMO.Email.Store.EmailStoreItemReadParts required**

Returns

`bool`

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

[EmailStoreItemReadOptions.cs:20](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Email/Store/Reading/EmailStoreItemReadOptions.cs#L20)

Default full-item projection.

`public EmailStoreItemReadParts Parts { get; }` [#](#property-parts)

[EmailStoreItemReadOptions.cs:23](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Email/Store/Reading/EmailStoreItemReadOptions.cs#L23)

Normalized parts requested from the store backend.

`public long? MaxDecodedPropertyBytes { get; }` [#](#property-maxdecodedpropertybytes)

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

Optional per-read cap for decoded property bytes. Backends may narrow this further and never widen [EmailStoreReaderOptions.MaxDecodedPropertyBytesPerItem](/api/email/officeimo-email-store-emailstorereaderoptions/).

`public bool PreferStreamingAttachmentContent { get; }` [#](#property-preferstreamingattachmentcontent)

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

Whether a capable session should expose attachment payloads through reopenable streams even when the store's compatibility options normally retain byte arrays.

<!-- PowerForge markdown artifact sha256:74CA19E0166D38C2EA4D3D0507A267A98A3FB027D9BEB2A29478350B99B3FEA1 -->
