Encrypt Method
Encrypts the current Message .
Syntax
[VB.NET] Public Sub Encrypt()
[C#] public void Encrypt();
Remarks
This method encrypts the current data in Message in a PKCS encoded envelope with all of the recipient certificates specified in the MessageRecipients collection .
The result of the encrypted data will be replaced in the Message property and the MessageHeaders property will be filled with the required S/MIME headers.
Please note that the message headers, including the Sender, Recipient(s), and Subject, are not encrypted. If this is sensitive information, consider including these headers in the message body as a MIME entity, and providing other headers for the S/MIME wrapper.
NOTE: This method has a corresponding asynchronous version (EncryptAsync) for use in the Xamarin environment.