System.Security.Cryptography.Pkcs.EnvelopedCms.Encrypt Method

The EnvelopedCms.Encrypt(CmsRecipient) method encrypts the contents of the CMS/PKCS #7 message by using the specified recipient information.

Syntax

public void Encrypt (CmsRecipient recipient)

Parameters

recipient
A System.Security.Cryptography.Pkcs.CmsRecipient object that represents the recipient information.

Remarks

The EnvelopedCms.Encrypt(CmsRecipient) method does not cause the EnvelopedCms.RecipientInfos property to be populated.

Requirements

Namespace: System.Security.Cryptography.Pkcs
Assembly: System.Security (in System.Security.dll)
Assembly Versions: 2.0.0.0, 4.0.0.0
Since: .NET 2.0