Editja

EnvelopedCms.Encrypt Method

Definition

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.

Applies to