MailMessageEncrypt Method (X509Certificate2) |
Encrypts this message
Namespace:
Aspose.Email
Assembly:
Aspose.Email (in Aspose.Email.dll) Version: 20.2
Syntax public virtual MailMessage Encrypt(
X509Certificate2 certificate
)
Public Overridable Function Encrypt (
certificate As X509Certificate2
) As MailMessage
public:
virtual MailMessage^ Encrypt(
X509Certificate2^ certificate
)
abstract Encrypt :
certificate : X509Certificate2 -> MailMessage
override Encrypt :
certificate : X509Certificate2 -> MailMessage
Parameters
- certificate
- Type: System.Security.Cryptography.X509CertificatesX509Certificate2
X509 certificate to encrypt message
Return Value
Type:
MailMessageEncrypted email message
See Also