## Decrypt() {#decrypt}

Decrypts this message

```csharp
public MapiMessage Decrypt()
```

### Return Value

Decrypted MapiMessage

## Remarks

Method searches the current user and computer My stores for the appropriate certificate and private key.

### See Also

* class [MapiMessage](../)
* namespace [Aspose.Email.Mapi](../../mapimessage/)
* assembly [Aspose.Email](../../../)

---

## Decrypt(X509Certificate2) {#decrypt_1}

Decrypts this message

```csharp
public MapiMessage Decrypt(X509Certificate2 certificate)
```

| Parameter | Type | Description |
| --- | --- | --- |
| certificate | X509Certificate2 | System.Security.Cryptography.X509Certificates.X509Certificate2 |

### Return Value

E-mail message

### See Also

* class [MapiMessage](../)
* namespace [Aspose.Email.Mapi](../../mapimessage/)
* assembly [Aspose.Email](../../../)


