Encrypts the message using specified certificate.
You can call this method multiple times to use several certificates for encryption.
General rule is that both sender and receiver should be able to decrypt the message.
Namespace: Limilabs.Mail.FluentAssembly: Mail (in Mail.dll) Version: 3.0.12102.1426
Syntax
| C# |
|---|
IFluentMail EncryptWith( X509Certificate2 certificate ) |
| Visual Basic |
|---|
Function EncryptWith ( _ certificate As X509Certificate2 _ ) As IFluentMail |
| Visual C++ |
|---|
IFluentMail^ EncryptWith( X509Certificate2^ certificate ) |
Parameters
- certificate
- Type: System.Security.Cryptography.X509Certificates..::..X509Certificate2
Certificate to use for encryption.