EnvelopedCms.Encrypt Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Encrypts the contents of the CMS/PKCS#7 message.
Overloads
| Name | Description |
|---|---|
| Encrypt(CmsRecipient) |
Encrypts the contents of the CMS/PKCS#7 message for a single specified recipient. |
| Encrypt(CmsRecipientCollection) |
Encrypts the contents of the CMS/PKCS#7 message for one or more recipients. |
Encrypt(CmsRecipient)
- Source:
- EnvelopedCms.cs
- Source:
- EnvelopedCms.cs
- Source:
- EnvelopedCms.cs
- Source:
- EnvelopedCms.cs
- Source:
- EnvelopedCms.cs
- Source:
- EnvelopedCms.cs
- Source:
- EnvelopedCms.cs
- Source:
- EnvelopedCms.cs
Encrypts the contents of the CMS/PKCS#7 message for a single specified recipient.
public:
void Encrypt(System::Security::Cryptography::Pkcs::CmsRecipient ^ recipient);
public void Encrypt(System.Security.Cryptography.Pkcs.CmsRecipient recipient);
member this.Encrypt : System.Security.Cryptography.Pkcs.CmsRecipient -> unit
Public Sub Encrypt (recipient As CmsRecipient)
Parameters
- recipient
- CmsRecipient
The recipient information describing the single recipient of this message.
Exceptions
The recipient parameter is null.
A cryptographic operation could not be completed.
See also
Applies to
Encrypt(CmsRecipientCollection)
- Source:
- EnvelopedCms.cs
- Source:
- EnvelopedCms.cs
- Source:
- EnvelopedCms.cs
- Source:
- EnvelopedCms.cs
- Source:
- EnvelopedCms.cs
- Source:
- EnvelopedCms.cs
- Source:
- EnvelopedCms.cs
- Source:
- EnvelopedCms.cs
Encrypts the contents of the CMS/PKCS#7 message for one or more recipients.
public:
void Encrypt(System::Security::Cryptography::Pkcs::CmsRecipientCollection ^ recipients);
public void Encrypt(System.Security.Cryptography.Pkcs.CmsRecipientCollection recipients);
member this.Encrypt : System.Security.Cryptography.Pkcs.CmsRecipientCollection -> unit
Public Sub Encrypt (recipients As CmsRecipientCollection)
Parameters
- recipients
- CmsRecipientCollection
A collection describing the recipients for the message.
Exceptions
The recipients parameter is null.
A cryptographic operation could not be completed.