# EmailStoreItemPatch

Composable typed item changes for one or many PST items. The patch is reusable and does not retain an item.

Class 

`OfficeIMO.Email.Store`

**Namespace**

`OfficeIMO.Email.Store`

**Assembly**

`OfficeIMO.Email`

**Source revision**

`be6c300e4ab1` with working tree changes

**Source**

[EmailStoreItemPatch.cs:25](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Email/Store/Mutation/EmailStoreItemPatch.cs#L25)

**Modifiers**

sealed

Composable typed item changes for one or many PST items. The patch is reusable and does not retain an item.

## Inheritance

- object
- EmailStoreItemPatch

## Usage

Explore 12 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 10

- Method [EmailStoreItemPatch.ClearFollowUp](/api/email/officeimo-email-store-emailstoreitempatch/#method-clearfollowup)
- Method [EmailStoreItemPatch.CompleteFollowUp](/api/email/officeimo-email-store-emailstoreitempatch/#method-completefollowup-datetimeoffset)
- Method [EmailStoreItemPatch.PatchAttachments](/api/email/officeimo-email-store-emailstoreitempatch/#method-patchattachments-officeimo-email-emailattachmentpatch)
- Method [EmailStoreItemPatch.PatchProperties](/api/email/officeimo-email-store-emailstoreitempatch/#method-patchproperties-officeimo-email-mapipropertypatch)
- Method [EmailStoreItemPatch.SetCategories](/api/email/officeimo-email-store-emailstoreitempatch/#method-setcategories-collections-generic-ienumerable-system-string)
- Method [EmailStoreItemPatch.SetFollowUp](/api/email/officeimo-email-store-emailstoreitempatch/#method-setfollowup-string-nullable-system-datetimeoffset-nullable-system-datetimeoffset-nullable-officeimo-email-outlookfollowupicon)
- Method [EmailStoreItemPatch.SetImportance](/api/email/officeimo-email-store-emailstoreitempatch/#method-setimportance-nullable-officeimo-email-emailmessageimportance)
- Method [EmailStoreItemPatch.SetReadState](/api/email/officeimo-email-store-emailstoreitempatch/#method-setreadstate-boolean)
- Method [EmailStoreItemPatch.SetReminder](/api/email/officeimo-email-store-emailstoreitempatch/#method-setreminder-officeimo-email-outlookreminder)
- Method [EmailStoreItemPatch.SetSensitivity](/api/email/officeimo-email-store-emailstoreitempatch/#method-setsensitivity-nullable-system-int32)

### Accepted by parameters 2

- Method [EmailStorePstMutationTransaction.PatchItem](/api/email/officeimo-email-store-emailstorepstmutationtransaction/#method-patchitem-string-officeimo-email-store-emailstoreitempatch-threading-cancellationtoken) parameter `patch`
- Method [EmailStorePstMutationTransaction.PatchItems](/api/email/officeimo-email-store-emailstorepstmutationtransaction/#method-patchitems-officeimo-email-store-emailstoretablequery-officeimo-email-store-emailstoreitempatch-threading-cancellationtoken) parameter `patch`

Filter members 

Show inherited

## Constructors

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

[EmailStoreItemPatch.cs:25](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Email/Store/Mutation/EmailStoreItemPatch.cs#L25)

## Methods

`public EmailStoreItemPatch ClearFollowUp()` [#](#method-clearfollowup)

[EmailStoreItemPatch.cs:94](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Email/Store/Mutation/EmailStoreItemPatch.cs#L94)

Clears follow-up state.

Returns

`EmailStoreItemPatch`

`public EmailStoreItemPatch CompleteFollowUp(DateTimeOffset completedAt)` [#](#method-completefollowup-datetimeoffset)

[EmailStoreItemPatch.cs:86](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Email/Store/Mutation/EmailStoreItemPatch.cs#L86)

Marks a follow-up complete.

Parameters

**completedAt System.DateTimeOffset required**

Returns

`EmailStoreItemPatch`

`public EmailStoreItemPatch PatchAttachments(EmailAttachmentPatch patch)` [#](#method-patchattachments-officeimo-email-emailattachmentpatch)

[EmailStoreItemPatch.cs:115](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Email/Store/Mutation/EmailStoreItemPatch.cs#L115)

Appends attachment operations to this patch.

Parameters

**patch OfficeIMO.Email.EmailAttachmentPatch required**

Returns

`EmailStoreItemPatch`

`public EmailStoreItemPatch PatchProperties(MapiPropertyPatch patch)` [#](#method-patchproperties-officeimo-email-mapipropertypatch)

[EmailStoreItemPatch.cs:109](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Email/Store/Mutation/EmailStoreItemPatch.cs#L109)

Appends exact MAPI changes to this patch.

Parameters

**patch OfficeIMO.Email.MapiPropertyPatch required**

Returns

`EmailStoreItemPatch`

`public EmailStoreItemPatch SetCategories(IEnumerable<string> categories)` [#](#method-setcategories-collections-generic-ienumerable-system-string)

[EmailStoreItemPatch.cs:61](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Email/Store/Mutation/EmailStoreItemPatch.cs#L61)

Replaces item category names using Outlook's case-insensitive normalization.

Parameters

**categories System.Collections.Generic.IEnumerable<string> required**

Returns

`EmailStoreItemPatch`

`public EmailStoreItemPatch SetFollowUp(string? request = null, DateTimeOffset? start = null, DateTimeOffset? due = null, OutlookFollowUpIcon? icon = null)` [#](#method-setfollowup-string-nullable-system-datetimeoffset-nullable-system-datetimeoffset-nullable-officeimo-email-outlookfollowupicon)

[EmailStoreItemPatch.cs:73](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Email/Store/Mutation/EmailStoreItemPatch.cs#L73)

Sets a follow-up flag.

Parameters

**request string? = null optional**

**start System.DateTimeOffset? = null optional**

**due System.DateTimeOffset? = null optional**

**icon OfficeIMO.Email.OutlookFollowUpIcon? = null optional**

Returns

`EmailStoreItemPatch`

`public EmailStoreItemPatch SetImportance(EmailMessageImportance? importance)` [#](#method-setimportance-nullable-officeimo-email-emailmessageimportance)

[EmailStoreItemPatch.cs:43](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Email/Store/Mutation/EmailStoreItemPatch.cs#L43)

Sets or clears message importance.

Parameters

**importance OfficeIMO.Email.EmailMessageImportance? required**

Returns

`EmailStoreItemPatch`

`public EmailStoreItemPatch SetReadState(bool isRead)` [#](#method-setreadstate-boolean)

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

Marks the message read or unread.

Parameters

**isRead bool required**

Returns

`EmailStoreItemPatch`

`public EmailStoreItemPatch SetReminder(OutlookReminder reminder)` [#](#method-setreminder-officeimo-email-outlookreminder)

[EmailStoreItemPatch.cs:101](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Email/Store/Mutation/EmailStoreItemPatch.cs#L101)

Replaces common message, appointment, or task reminder fields.

Parameters

**reminder OfficeIMO.Email.OutlookReminder required**

Returns

`EmailStoreItemPatch`

`public EmailStoreItemPatch SetSensitivity(int? sensitivity)` [#](#method-setsensitivity-nullable-system-int32)

[EmailStoreItemPatch.cs:51](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Email/Store/Mutation/EmailStoreItemPatch.cs#L51)

Sets or clears the raw MAPI sensitivity value.

Parameters

**sensitivity int? required**

Returns

`EmailStoreItemPatch`

## 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 MapiPropertyPatch Properties { get; }` [#](#property-properties)

[EmailStoreItemPatch.cs:25](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Email/Store/Mutation/EmailStoreItemPatch.cs#L25)

Exact MAPI property changes applied after typed projection.

`public EmailAttachmentPatch Attachments { get; }` [#](#property-attachments)

[EmailStoreItemPatch.cs:27](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Email/Store/Mutation/EmailStoreItemPatch.cs#L27)

Ordered attachment-list changes.

`public int ChangeCount { get; private set; }` [#](#property-changecount)

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

Number of typed, property, and attachment operations in this patch.

`public bool IsEmpty { get; }` [#](#property-isempty)

[EmailStoreItemPatch.cs:31](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Email/Store/Mutation/EmailStoreItemPatch.cs#L31)

Whether no operation is staged.

<!-- PowerForge markdown artifact sha256:3237A6DB40FBF881EFC63326D627CC73C57A3ABE20486C6F6BCAC6821E24FAC0 -->
