Export (0) Print
Expand All

EnvelopedCms Constructor (ContentInfo, AlgorithmIdentifier)

Note: This constructor is new in the .NET Framework version 2.0.

The EnvelopedCms(ContentInfo,AlgorithmIdentifier) constructor creates an instance of the EnvelopedCms class by using the specified content information and encryption algorithm. The specified content information is to be used as the inner content type.

Namespace: System.Security.Cryptography.Pkcs
Assembly: System.Security (in system.security.dll)

public EnvelopedCms (
	ContentInfo contentInfo,
	AlgorithmIdentifier encryptionAlgorithm
public EnvelopedCms (
	ContentInfo contentInfo, 
	AlgorithmIdentifier encryptionAlgorithm
public function EnvelopedCms (
	contentInfo : ContentInfo, 
	encryptionAlgorithm : AlgorithmIdentifier



A ContentInfo object that represents the content and its type.


An AlgorithmIdentifier object that specifies the encryption algorithm.

Exception typeCondition


A null reference was passed to a method that does not accept it as a valid argument.

For the default property values used with this constructor, see EnvelopedCms.

Windows 98, Windows 2000 SP4, Windows Millennium Edition, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see System Requirements.

.NET Framework

Supported in: 2.0

Community Additions

© 2014 Microsoft