# EmailSmimeDecryptionResult

Result of decrypting opaque S/MIME EnvelopedData.

Class 

`OfficeIMO.Email`

**Namespace**

`OfficeIMO.Email`

**Assembly**

`OfficeIMO.Email`

**Source revision**

`be6c300e4ab1` with working tree changes

**Source**

[EmailSmimeResults.cs:59](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Email/Security/EmailSmimeResults.cs#L59)

**Modifiers**

sealed

Result of decrypting opaque S/MIME EnvelopedData.

## Inheritance

- object
- EmailSmimeDecryptionResult

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

- Method [EmailSmime.Decrypt](/api/email/officeimo-email-emailsmime/#method-decrypt-officeimo-email-emaildocument-security-cryptography-x509certificates-x509certificate2-officeimo-security-iofficesecurityprovider-officeimo-security-cmsenvelopeoptions-officeimo-email-emailreaderoptions)
- Property [EmailSmimeProcessingResult.Decryption](/api/email/officeimo-email-emailsmimeprocessingresult/#property-decryption)

Filter members 

Show inherited

## 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 string ProviderName { get; }` [#](#property-providername)

[EmailSmimeResults.cs:59](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Email/Security/EmailSmimeResults.cs#L59)

Explicit security provider that produced the cryptographic evidence.

`public EmailProtectionKind ProtectionKind { get; }` [#](#property-protectionkind)

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

Protection wrapper detected by the email reader.

`public CmsDecryptionResult? Cryptography { get; }` [#](#property-cryptography)

[EmailSmimeResults.cs:63](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Email/Security/EmailSmimeResults.cs#L63)

Neutral CMS decryption result, or null when no decryptable S/MIME payload was available.

`public byte[]? DecryptedMimeEntity { get; }` [#](#property-decryptedmimeentity)

[EmailSmimeResults.cs:65](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Email/Security/EmailSmimeResults.cs#L65)

Exact decrypted MIME entity bytes.

`public EmailDocument? DecryptedContent { get; }` [#](#property-decryptedcontent)

[EmailSmimeResults.cs:67](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Email/Security/EmailSmimeResults.cs#L67)

Parsed decrypted MIME content, when it could be decoded safely.

`public IReadOnlyList<EmailDiagnostic> Diagnostics { get; }` [#](#property-diagnostics)

[EmailSmimeResults.cs:69](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Email/Security/EmailSmimeResults.cs#L69)

Email-layer extraction and content-projection diagnostics.

`public bool Decrypted { get; }` [#](#property-decrypted)

[EmailSmimeResults.cs:71](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Email/Security/EmailSmimeResults.cs#L71)

True when CMS decryption succeeded.

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