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
)

Parameters

certificate
Type: System.Security.Cryptography.X509CertificatesX509Certificate2
X509 certificate to encrypt message

Return Value

Type: MailMessage
Encrypted email message
See Also