# EmailStoreEnumerationOptions

Controls bounded lightweight item enumeration from an open store.

Class 

`OfficeIMO.Email.Store`

**Namespace**

`OfficeIMO.Email.Store`

**Assembly**

`OfficeIMO.Email`

**Source revision**

`be6c300e4ab1` with working tree changes

**Source**

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

**Modifiers**

sealed

Controls bounded lightweight item enumeration from an open store.

## Inheritance

- object
- EmailStoreEnumerationOptions

## Guides & Samples

Authored walkthroughs and practical samples linked to this API.

- [Read and Convert PST, OST, and Mailbox Stores](/docs/email/mailbox-stores/) Guide
  
  Open PST, OST, OLM, mbox, EMLX, Apple Mail, and Maildir stores, export their messages, and convert a store to a new PST with verification.
- [Read PST and OST Files in .NET Without Outlook](/solutions/outlook-mailbox-migration/) Guide
  
  Read PST, OST, OLM, mbox, EMLX, Apple Mail, and Maildir in .NET without Outlook, then extract messages or write and verify a new PST.

## Usage

Explore 4 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

- Method [EmailStoreEnumerationOptions.ForAssociated](/api/email/officeimo-email-store-emailstoreenumerationoptions/#method-forassociated-nullable-officeimo-email-store-emailstorefolderid-boolean-int32)
- Method [EmailStoreEnumerationOptions.ForFolder](/api/email/officeimo-email-store-emailstoreenumerationoptions/#method-forfolder-officeimo-email-store-emailstorefolderid-boolean-boolean-int32)

### Accepted by parameters 2

- Method [EmailStoreSession.EnumerateItems](/api/email/officeimo-email-store-emailstoresession/#method-enumerateitems-officeimo-email-store-emailstoreenumerationoptions-threading-cancellationtoken) parameter `options`
- Method [EmailStoreSession.EnumerateItemsAsync](/api/email/officeimo-email-store-emailstoresession/#method-enumerateitemsasync-officeimo-email-store-emailstoreenumerationoptions-threading-cancellationtoken) parameter `options`

Filter members 

Show inherited

## Constructors

`public EmailStoreEnumerationOptions(string? folderId = null, bool includeDescendants = false, bool includeAssociatedItems = false, bool includeOrphanedItems = false, int maxItems = 2147483647, bool includeRegularItems = true)` [#](#constructor-ctor-string-boolean-boolean-boolean-int32-boolean)

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

Creates item-enumeration options.

Parameters

**folderId string? = null optional**

**includeDescendants bool = false optional**

**includeAssociatedItems bool = false optional**

**includeOrphanedItems bool = false optional**

**maxItems int = 2147483647 optional**

**includeRegularItems bool = true optional**

## Methods

`public static EmailStoreEnumerationOptions ForAssociated(EmailStoreFolderId? folderId = null, bool includeDescendants = false, int maxItems = 2147483647)` [#](#method-forassociated-nullable-officeimo-email-store-emailstorefolderid-boolean-int32)

[EmailStoreEnumerationOptions.cs:54](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Email/Store/Reading/EmailStoreEnumerationOptions.cs#L54)

Creates an associated-information-only scope without scanning normal item tables.

Parameters

**folderId OfficeIMO.Email.Store.EmailStoreFolderId? = null optional**

**includeDescendants bool = false optional**

**maxItems int = 2147483647 optional**

Returns

`EmailStoreEnumerationOptions`

`public static EmailStoreEnumerationOptions ForFolder(EmailStoreFolderId folderId, bool includeDescendants = false, bool includeAssociatedItems = false, int maxItems = 2147483647)` [#](#method-forfolder-officeimo-email-store-emailstorefolderid-boolean-boolean-int32)

[EmailStoreEnumerationOptions.cs:47](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Email/Store/Reading/EmailStoreEnumerationOptions.cs#L47)

Creates options for one typed folder scope.

Parameters

**folderId OfficeIMO.Email.Store.EmailStoreFolderId required**

**includeDescendants bool = false optional**

**includeAssociatedItems bool = false optional**

**maxItems int = 2147483647 optional**

Returns

`EmailStoreEnumerationOptions`

## 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 string? FolderId { get; }` [#](#property-folderid)

[EmailStoreEnumerationOptions.cs:26](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Email/Store/Reading/EmailStoreEnumerationOptions.cs#L26)

Optional folder identifier. Null enumerates every folder.

`public bool IncludeDescendants { get; }` [#](#property-includedescendants)

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

Whether descendants of [EmailStoreEnumerationOptions.FolderId](/api/email/officeimo-email-store-emailstoreenumerationoptions/) are included.

`public bool IncludeAssociatedItems { get; }` [#](#property-includeassociateditems)

[EmailStoreEnumerationOptions.cs:32](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Email/Store/Reading/EmailStoreEnumerationOptions.cs#L32)

Whether folder-associated information items are included.

`public bool IncludeOrphanedItems { get; }` [#](#property-includeorphaneditems)

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

Whether items missing from folder contents tables are recovered from source indexes.

`public int MaxItems { get; }` [#](#property-maxitems)

[EmailStoreEnumerationOptions.cs:38](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Email/Store/Reading/EmailStoreEnumerationOptions.cs#L38)

Maximum references returned by one enumeration.

`public bool IncludeRegularItems { get; }` [#](#property-includeregularitems)

[EmailStoreEnumerationOptions.cs:41](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Email/Store/Reading/EmailStoreEnumerationOptions.cs#L41)

Whether normal folder contents are included.

<!-- PowerForge markdown artifact sha256:1B88A256115CC94D392878A071AF919FC51FEDC6672EF01CC3C9490F1BE4E98B -->
