EnvelopedCms.Decode Method (Byte[])


The Decode method decodes the specified enveloped CMS/PKCS #7 message and resets all member variables in the EnvelopedCms object.

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

public void Decode(
	byte[] encodedMessage


Type: System.Byte[]

An array of byte values that represent the information to be decoded.

Exception Condition

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

This method should be called before EnvelopedCms.Decrypt() or any other EnvelopedCms.Decrypt method.

.NET Framework
Available since 2.0
Return to top