# EmailProtectionInfo

Describes a protected message and points to the original payload that a cryptographic owner can process.

Class 

`OfficeIMO.Email`

**Namespace**

`OfficeIMO.Email`

**Assembly**

`OfficeIMO.Email`

**Source revision**

`be6c300e4ab1` with working tree changes

**Source**

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

**Modifiers**

sealed

Describes a protected message and points to the original payload that a cryptographic owner can process.

## Inheritance

- object
- EmailProtectionInfo

## Usage

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

- Property [EmailDocument.Protection](/api/email/officeimo-email-emaildocument/#property-protection)

Filter members 

Show inherited

## Constructors

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

## 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 EmailProtectionKind Kind { get; internal set; }` [#](#property-kind)

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

Detected protection wrapper.

`public string? MessageClass { get; internal set; }` [#](#property-messageclass)

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

Original Outlook message class used for classification, when one exists.

`public EmailAttachment? PayloadAttachment { get; internal set; }` [#](#property-payloadattachment)

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

Attachment containing the CMS, signature, or encrypted MIME payload when it can be projected independently.

`public EmailInlinePgpKind InlinePgp { get; internal set; }` [#](#property-inlinepgp)

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

Inline ASCII-armored OpenPGP at the start of the plain-text body. Inline blocks travel inside the text, so they do not make the message [EmailProtectionInfo.IsProtected](/api/email/officeimo-email-emailprotectioninfo/); use [EmailPgp](/api/email/officeimo-email-emailpgp/) to verify or decrypt them.

`public bool IsProtected { get; }` [#](#property-isprotected)

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

True when a protected-message wrapper was detected.

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