# EmailStoreItemReader

Item-at-a-time Reader ingestion for bounded PST, OST, OLM, EMLX, and mailbox-directory sessions.

Class 

`OfficeIMO.Reader.Email`

**Namespace**

`OfficeIMO.Reader.Email`

**Assembly**

`OfficeIMO.Reader.Email`

**Source revision**

`ba882f6b0d07` with working tree changes

**Source**

[EmailStoreItemReader.cs:17](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Reader.Email/EmailStoreItemReader.cs#L17)

**Modifiers**

static

Item-at-a-time Reader ingestion for bounded PST, OST, OLM, EMLX, and mailbox-directory sessions.

## Inheritance

- object
- EmailStoreItemReader

Filter members 

Show inherited

## Methods

Read 2 overloads

`public static IEnumerable<ReaderEmailStoreItemResult> Read(string path, ReaderOptions? readerOptions = null, ReaderEmailStoreOptions? emailStoreOptions = null, CancellationToken cancellationToken = default)` [#](#method-read-string-officeimo-reader-readeroptions-officeimo-reader-email-readeremailstoreoptions-threading-cancellationtoken)

[EmailStoreItemReader.cs:17](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Reader.Email/EmailStoreItemReader.cs#L17)

Lazily selects and projects one store item at a time. The source session and deferred attachment streams remain open only for the lifetime of the returned enumeration.

Parameters

**path string required**

**readerOptions OfficeIMO.Reader.ReaderOptions? = null optional**

**emailStoreOptions OfficeIMO.Reader.Email.ReaderEmailStoreOptions? = null optional**

**cancellationToken System.Threading.CancellationToken = default optional**

Returns

`IEnumerable<ReaderEmailStoreItemResult>`

`public static IEnumerable<ReaderEmailStoreItemResult> Read(OfficeDocumentReader reader, string path, ReaderOptions? readerOptions = null, ReaderEmailStoreOptions? emailStoreOptions = null, CancellationToken cancellationToken = default)` [#](#method-read-officeimo-reader-officedocumentreader-string-officeimo-reader-readeroptions-officeimo-reader-email-readeremailstoreoptions-threading-cancellationtoken)

[EmailStoreItemReader.cs:31](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Reader.Email/EmailStoreItemReader.cs#L31)

Lazily selects and projects one store item at a time through the supplied Reader's configured HTML, RTF, attachment, and other modular handlers.

Parameters

**reader OfficeIMO.Reader.OfficeDocumentReader required**

**path string required**

**readerOptions OfficeIMO.Reader.ReaderOptions? = null optional**

**emailStoreOptions OfficeIMO.Reader.Email.ReaderEmailStoreOptions? = null optional**

**cancellationToken System.Threading.CancellationToken = default optional**

Returns

`IEnumerable<ReaderEmailStoreItemResult>`

`public static ReaderEmailStoreItemResult ReadById(OfficeDocumentReader reader, string path, string itemId, ReaderOptions? readerOptions = null, ReaderEmailStoreOptions? emailStoreOptions = null, CancellationToken cancellationToken = default)` [#](#method-readbyid-officeimo-reader-officedocumentreader-string-string-officeimo-reader-readeroptions-officeimo-reader-email-readeremailstoreoptions-threading-cancellationtoken)

[EmailStoreItemReader.cs:50](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Reader.Email/EmailStoreItemReader.cs#L50)

Reads and projects one explicitly selected store item by its stable source identifier. References are enumerated as lightweight rows until the requested identifier is found; unrelated item bodies and attachment payloads are not materialized.

Parameters

**reader OfficeIMO.Reader.OfficeDocumentReader required**

**path string required**

**itemId string required**

**readerOptions OfficeIMO.Reader.ReaderOptions? = null optional**

**emailStoreOptions OfficeIMO.Reader.Email.ReaderEmailStoreOptions? = null optional**

**cancellationToken System.Threading.CancellationToken = default optional**

Returns

`ReaderEmailStoreItemResult`

## 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?`

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