# EmailProtectionKind

Classifies protected message content without performing cryptographic operations.

Enum 

`OfficeIMO.Email`

**Namespace**

`OfficeIMO.Email`

**Assembly**

`OfficeIMO.Email`

**Source revision**

`be6c300e4ab1` with working tree changes

**Source**

[EmailProtectionInfo.cs:4](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Email/Model/EmailProtectionInfo.cs#L4)

**Base**

`Enum`

**Implements**

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

**Modifiers**

sealed

Classifies protected message content without performing cryptographic operations.

## Inheritance

- Enum
- EmailProtectionKind

## Usage

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

- Property [EmailPgpDecryptionResult.ProtectionKind](/api/email/officeimo-email-emailpgpdecryptionresult/#property-protectionkind)
- Property [EmailPgpVerificationResult.ProtectionKind](/api/email/officeimo-email-emailpgpverificationresult/#property-protectionkind)
- Property [EmailProtectionInfo.Kind](/api/email/officeimo-email-emailprotectioninfo/#property-kind)
- Field [EmailProtectionKind.MimeClearSigned](/api/email/officeimo-email-emailprotectionkind/#field-mimeclearsigned)
- Field [EmailProtectionKind.MimeEncrypted](/api/email/officeimo-email-emailprotectionkind/#field-mimeencrypted)
- Field [EmailProtectionKind.None](/api/email/officeimo-email-emailprotectionkind/#field-none)
- Field [EmailProtectionKind.PgpMimeClearSigned](/api/email/officeimo-email-emailprotectionkind/#field-pgpmimeclearsigned)
- Field [EmailProtectionKind.PgpMimeEncrypted](/api/email/officeimo-email-emailprotectionkind/#field-pgpmimeencrypted)
- Field [EmailProtectionKind.SmimeClearSigned](/api/email/officeimo-email-emailprotectionkind/#field-smimeclearsigned)
- Field [EmailProtectionKind.SmimeOpaque](/api/email/officeimo-email-emailprotectionkind/#field-smimeopaque)
- Property [EmailSmimeCreationResult.ProtectionKind](/api/email/officeimo-email-emailsmimecreationresult/#property-protectionkind)
- Property [EmailSmimeDecryptionResult.ProtectionKind](/api/email/officeimo-email-emailsmimedecryptionresult/#property-protectionkind)
- Property [EmailSmimeVerificationResult.ProtectionKind](/api/email/officeimo-email-emailsmimeverificationresult/#property-protectionkind)

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 EmailProtectionKind None` [#](#field-none)

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

No protected-message wrapper was detected.

Value: `0`

`public const EmailProtectionKind SmimeOpaque` [#](#field-smimeopaque)

[EmailProtectionInfo.cs:8](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Email/Model/EmailProtectionInfo.cs#L8)

An opaque S/MIME CMS payload was detected; it can be signed, encrypted, or both.

Value: `1`

`public const EmailProtectionKind SmimeClearSigned` [#](#field-smimeclearsigned)

[EmailProtectionInfo.cs:10](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Email/Model/EmailProtectionInfo.cs#L10)

A clear-signed S/MIME MIME entity was detected.

Value: `2`

`public const EmailProtectionKind PgpMimeEncrypted` [#](#field-pgpmimeencrypted)

[EmailProtectionInfo.cs:12](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Email/Model/EmailProtectionInfo.cs#L12)

An OpenPGP/MIME encrypted multipart entity was detected.

Value: `3`

`public const EmailProtectionKind PgpMimeClearSigned` [#](#field-pgpmimeclearsigned)

[EmailProtectionInfo.cs:14](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Email/Model/EmailProtectionInfo.cs#L14)

An OpenPGP/MIME clear-signed multipart entity was detected.

Value: `4`

`public const EmailProtectionKind MimeClearSigned` [#](#field-mimeclearsigned)

[EmailProtectionInfo.cs:16](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Email/Model/EmailProtectionInfo.cs#L16)

A clear-signed MIME entity with an unrecognized signature protocol was detected.

Value: `5`

`public const EmailProtectionKind MimeEncrypted` [#](#field-mimeencrypted)

[EmailProtectionInfo.cs:18](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Email/Model/EmailProtectionInfo.cs#L18)

An encrypted MIME entity with an unrecognized encryption protocol was detected.

Value: `6`

<!-- PowerForge markdown artifact sha256:FD75D23E12B7261CE720C9A10A20DCEE1F76D5DBE2B1D02B2F0C0241A6E200E3 -->
