[CAPICOM is a 32-bit only component that is available for use in the following operating systems: Windows Server 2008, Windows Vista, and Windows XP. Instead, use the EnvelopedCms Class in the System.Security.Cryptography.Pkcs namespace.]
The Decrypt method decrypts enveloped content. Decryption is done if the recipient of the message has access to the private key paired with one of the public keys used to envelop the message. Calling the Decrypt method resets the state of the object. If the Decrypt method succeeds, the Content property of the EnvelopedData object is set to the plaintext message.
- EnvelopedMessage [in]
String that contains the enveloped data to be decrypted.
This method does not return a value.
If the user of this method does not have access to a private key that matches one of the public keys used to envelop the message, the method fails. This method will fail if the certificate for the associated private key is not in either the local computer MY store or the current user MY store.
End of client support
End of server support
|Windows Server 2008|
|CAPICOM 2.0 or later on Windows Server 2003 and Windows XP|