# EmailMessageQuery

Metadata query options for the message-centric local-file workflow.

Class 

`OfficeIMO.Email`

**Namespace**

`OfficeIMO.Email`

**Assembly**

`OfficeIMO.Email`

**Source revision**

`3b680b1b6fb1` with working tree changes

**Source**

[EmailMessageReader.cs:21](https://github.com/EvotecIT/OfficeIMO/blob/3b680b1b6fb15a268ff5525a4ca6cdd70b2f6613/OfficeIMO.Email/Workflows/EmailMessageReader.cs#L21)

**Modifiers**

sealed

Metadata query options for the message-centric local-file workflow.

## Inheritance

- object
- EmailMessageQuery

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

### Accepted by parameters 2

- Method [EmailMessageReader.Read](/api/email/officeimo-email-emailmessagereader/#method-read-string-officeimo-email-emailmessagequery-threading-cancellationtoken) parameter `query`
- Method [EmailMessageStore.Read](/api/email/officeimo-email-emailmessagestore/#method-read-officeimo-email-emailmessagequery-threading-cancellationtoken) parameter `query`

Filter members 

Show inherited

## Constructors

`public EmailMessageQuery()` [#](#constructor-ctor)

[EmailMessageReader.cs:21](https://github.com/EvotecIT/OfficeIMO/blob/3b680b1b6fb15a268ff5525a4ca6cdd70b2f6613/OfficeIMO.Email/Workflows/EmailMessageReader.cs#L21)

## 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? Folder { get; set; }` [#](#property-folder)

[EmailMessageReader.cs:9](https://github.com/EvotecIT/OfficeIMO/blob/3b680b1b6fb15a268ff5525a4ca6cdd70b2f6613/OfficeIMO.Email/Workflows/EmailMessageReader.cs#L9)

Exact case-insensitive folder path, or a unique folder name.

`public bool Recurse { get; set; }` [#](#property-recurse)

[EmailMessageReader.cs:11](https://github.com/EvotecIT/OfficeIMO/blob/3b680b1b6fb15a268ff5525a4ca6cdd70b2f6613/OfficeIMO.Email/Workflows/EmailMessageReader.cs#L11)

Include descendant folders when a folder was specified.

`public string? SubjectContains { get; set; }` [#](#property-subjectcontains)

[EmailMessageReader.cs:13](https://github.com/EvotecIT/OfficeIMO/blob/3b680b1b6fb15a268ff5525a4ca6cdd70b2f6613/OfficeIMO.Email/Workflows/EmailMessageReader.cs#L13)

Case-insensitive subject fragment.

`public string? SenderContains { get; set; }` [#](#property-sendercontains)

[EmailMessageReader.cs:15](https://github.com/EvotecIT/OfficeIMO/blob/3b680b1b6fb15a268ff5525a4ca6cdd70b2f6613/OfficeIMO.Email/Workflows/EmailMessageReader.cs#L15)

Case-insensitive author name/address fragment.

`public DateTimeOffset? Since { get; set; }` [#](#property-since)

[EmailMessageReader.cs:17](https://github.com/EvotecIT/OfficeIMO/blob/3b680b1b6fb15a268ff5525a4ca6cdd70b2f6613/OfficeIMO.Email/Workflows/EmailMessageReader.cs#L17)

Inclusive received-date lower bound, falling back to sent date.

`public DateTimeOffset? Before { get; set; }` [#](#property-before)

[EmailMessageReader.cs:19](https://github.com/EvotecIT/OfficeIMO/blob/3b680b1b6fb15a268ff5525a4ca6cdd70b2f6613/OfficeIMO.Email/Workflows/EmailMessageReader.cs#L19)

Exclusive received-date upper bound, falling back to sent date.

`public int First { get; set; }` [#](#property-first)

[EmailMessageReader.cs:21](https://github.com/EvotecIT/OfficeIMO/blob/3b680b1b6fb15a268ff5525a4ca6cdd70b2f6613/OfficeIMO.Email/Workflows/EmailMessageReader.cs#L21)

Maximum matches returned, independently of the scan budget.

`public int MaxItemsScanned { get; set; }` [#](#property-maxitemsscanned)

[EmailMessageReader.cs:23](https://github.com/EvotecIT/OfficeIMO/blob/3b680b1b6fb15a268ff5525a4ca6cdd70b2f6613/OfficeIMO.Email/Workflows/EmailMessageReader.cs#L23)

Maximum summaries examined. A reached limit is reported explicitly.

<!-- PowerForge markdown artifact sha256:21A357958ECD9E5187EE520CD58503A12C085E04BBBC0553C45CC716E87A7510 -->
