# EmailAttachmentContentLifetime

Describes how attachment content sources participated in one write.

Enum 

`OfficeIMO.Email`

**Namespace**

`OfficeIMO.Email`

**Assembly**

`OfficeIMO.Email`

**Source revision**

`5e5a2dda74b3` with working tree changes

**Source**

[EmailArtifactWriteContract.cs:24](https://github.com/EvotecIT/OfficeIMO/blob/5e5a2dda74b33242f1f075718ee568bb355c03ba/OfficeIMO.Email/Conversion/EmailArtifactWriteContract.cs#L24)

**Base**

`Enum`

**Implements**

`IComparable` `ISpanFormattable` `IFormattable` `IConvertible`

**Modifiers**

sealed

Describes how attachment content sources participated in one write.

## Inheritance

- Enum
- EmailAttachmentContentLifetime

## Usage

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

- Field [EmailAttachmentContentLifetime.NotAccessed](/api/email/officeimo-email-emailattachmentcontentlifetime/#field-notaccessed)
- Field [EmailAttachmentContentLifetime.OperationScoped](/api/email/officeimo-email-emailattachmentcontentlifetime/#field-operationscoped)
- Property [EmailWriteResult.AttachmentContentLifetime](/api/email/officeimo-email-emailwriteresult/#property-attachmentcontentlifetime)

Filter members 

Show inherited

## Inherited Methods

`public int CompareTo(object? target)` [#](#method-compareto-object)

Inherited from Enum

Parameters

**target object? required**

Returns

`int`

`public override bool Equals(object? obj)` [#](#method-equals-object)

Inherited from Enum

Parameters

**obj object? required**

Returns

`bool`

`public override int GetHashCode()` [#](#method-gethashcode)

Inherited from Enum

Returns

`int`

`public Type GetType()` [#](#method-gettype)

Inherited from object

Returns

`Type`

`public TypeCode GetTypeCode()` [#](#method-gettypecode)

Inherited from Enum

Returns

`TypeCode`

`public bool HasFlag(Enum flag)` [#](#method-hasflag-enum)

Inherited from Enum

Parameters

**flag Enum required**

Returns

`bool`

ToString 4 overloads

`public override string ToString()` [#](#method-tostring)

Inherited from Enum

Returns

`string`

`public string ToString(string? format)` [#](#method-tostring-string)

Inherited from Enum

Parameters

**format string? required**

Returns

`string`

`public string ToString(IFormatProvider? provider)` [#](#method-tostring-iformatprovider)

Inherited from Enum

`Obsolete("The provider argument is not used. Use ToString() instead.")`

Parameters

**provider IFormatProvider? required**

Returns

`string`

`public string ToString(string? format, IFormatProvider? provider)` [#](#method-tostring-string-iformatprovider)

Inherited from Enum

`Obsolete("The provider argument is not used. Use ToString(String) instead.")`

Parameters

**format string? required**

**provider IFormatProvider? required**

Returns

`string`

## Values

`public const EmailAttachmentContentLifetime NotAccessed` [#](#field-notaccessed)

[EmailArtifactWriteContract.cs:26](https://github.com/EvotecIT/OfficeIMO/blob/5e5a2dda74b33242f1f075718ee568bb355c03ba/OfficeIMO.Email/Conversion/EmailArtifactWriteContract.cs#L26)

Attachment sources were not opened because preserved source bytes were reused or writing was blocked.

Value: `0`

`public const EmailAttachmentContentLifetime OperationScoped` [#](#field-operationscoped)

[EmailArtifactWriteContract.cs:31](https://github.com/EvotecIT/OfficeIMO/blob/5e5a2dda74b33242f1f075718ee568bb355c03ba/OfficeIMO.Email/Conversion/EmailArtifactWriteContract.cs#L31)

Attachment streams were opened, consumed, and disposed inside the write operation. The result does not retain store handles, streams, or attachment payloads.

Value: `1`

<!-- PowerForge markdown artifact sha256:92DC92380F10AC25A0B9CD802A31AFBFBE396836028B6D952A06F7221B28B252 -->
