# EmailShareCopyOptions

Explicit field selection for an independent plain-text artifact; this is not complete anonymization.

Class 

`OfficeIMO.Email`

**Namespace**

`OfficeIMO.Email`

**Assembly**

`OfficeIMO.Email`

**Source revision**

`ba882f6b0d07` with working tree changes

**Source**

[EmailShareCopyOptions.cs:27](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Email/Sharing/EmailShareCopyOptions.cs#L27)

**Modifiers**

sealed

Explicit field selection for an independent plain-text artifact; this is not complete anonymization.

## Inheritance

- object
- EmailShareCopyOptions

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

- Method [EmailShareCopyOptions.Clone](/api/email/officeimo-email-emailsharecopyoptions/#method-clone)

### Accepted by parameters 1

- Method [EmailShareCopy.Create](/api/email/officeimo-email-emailsharecopy/#method-create-officeimo-email-emaildocument-officeimo-email-emailsharecopyoptions-threading-cancellationtoken) parameter `options`

Filter members 

Show inherited

## Constructors

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

[EmailShareCopyOptions.cs:27](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Email/Sharing/EmailShareCopyOptions.cs#L27)

## Methods

`public EmailShareCopyOptions Clone()` [#](#method-clone)

[EmailShareCopyOptions.cs:53](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Email/Sharing/EmailShareCopyOptions.cs#L53)

Creates an independent policy snapshot, including selection collections.

Returns

`EmailShareCopyOptions`

## 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 EmailShareFields RetainedFields { get; set; }` [#](#property-retainedfields)

[EmailShareCopyOptions.cs:21](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Email/Sharing/EmailShareCopyOptions.cs#L21)

Original envelope fields to retain. None are retained by default.

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

[EmailShareCopyOptions.cs:23](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Email/Sharing/EmailShareCopyOptions.cs#L23)

Replacement subject, including an empty value. Null uses the subject selection policy.

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

[EmailShareCopyOptions.cs:25](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Email/Sharing/EmailShareCopyOptions.cs#L25)

Replacement plain body, including an empty value. Null uses the original plain-text body.

`public IDictionary<string, string?> AddressReplacements { get; }` [#](#property-addressreplacements)

[EmailShareCopyOptions.cs:27](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Email/Sharing/EmailShareCopyOptions.cs#L27)

Replace selected address values, or omit them when the replacement is null. Matching ignores case.

`public bool KeepDisplayNames { get; set; }` [#](#property-keepdisplaynames)

[EmailShareCopyOptions.cs:29](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Email/Sharing/EmailShareCopyOptions.cs#L29)

Retain address display names. Raw spelling and source-specific recipient properties are never copied.

`public ICollection<string> RetainedHeaderNames { get; }` [#](#property-retainedheadernames)

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

Explicit extra header names to retain; envelope, MIME and integrity headers remain owned by the new artifact.

`public ICollection<int> AttachmentIndexes { get; }` [#](#property-attachmentindexes)

[EmailShareCopyOptions.cs:33](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Email/Sharing/EmailShareCopyOptions.cs#L33)

Zero-based ordinary attachment indexes to copy. Payload content is retained unchanged and may contain private data.

`public bool KeepAttachmentNames { get; set; }` [#](#property-keepattachmentnames)

[EmailShareCopyOptions.cs:35](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Email/Sharing/EmailShareCopyOptions.cs#L35)

Retain selected original attachment names unless overridden. Generic names are used by default.

`public IDictionary<int, string> AttachmentNames { get; }` [#](#property-attachmentnames)

[EmailShareCopyOptions.cs:37](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Email/Sharing/EmailShareCopyOptions.cs#L37)

Replacement names for selected attachments, keyed by original index.

`public int MaxTextChars { get; set; }` [#](#property-maxtextchars)

[EmailShareCopyOptions.cs:39](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Email/Sharing/EmailShareCopyOptions.cs#L39)

Maximum source or replacement text field length, before any artifact is created.

`public int MaxRecipients { get; set; }` [#](#property-maxrecipients)

[EmailShareCopyOptions.cs:41](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Email/Sharing/EmailShareCopyOptions.cs#L41)

Maximum original recipients considered.

`public int MaxHeaders { get; set; }` [#](#property-maxheaders)

[EmailShareCopyOptions.cs:43](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Email/Sharing/EmailShareCopyOptions.cs#L43)

Maximum original headers considered.

`public int MaxAttachments { get; set; }` [#](#property-maxattachments)

[EmailShareCopyOptions.cs:45](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Email/Sharing/EmailShareCopyOptions.cs#L45)

Maximum selected attachment count.

`public long MaxAttachmentBytes { get; set; }` [#](#property-maxattachmentbytes)

[EmailShareCopyOptions.cs:47](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Email/Sharing/EmailShareCopyOptions.cs#L47)

Maximum decoded bytes per selected attachment.

`public long MaxTotalAttachmentBytes { get; set; }` [#](#property-maxtotalattachmentbytes)

[EmailShareCopyOptions.cs:49](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Email/Sharing/EmailShareCopyOptions.cs#L49)

Maximum decoded bytes across selected attachments.

<!-- PowerForge markdown artifact sha256:0EEF5F752469FC73B8FFE967BEDD4410CFEE39B5E7AA07D439FA2C7D25319542 -->
