The EnvelopedCms.Encrypt(CmsRecipient) method encrypts the contents of the CMS/PKCS #7 message by using the specified recipient information.
- recipient
A System.Security.Cryptography.Pkcs.CmsRecipient object that represents the recipient information.
The EnvelopedCms.Encrypt(CmsRecipient) method does not cause the EnvelopedCms.RecipientInfos property to be populated.