EnvelopedCms.UnprotectedAttributes Property

Definition

Gets the collection of unprotected (unencrypted) attributes associated with the enveloped CMS/PKCS#7 message.

public:
 property System::Security::Cryptography::CryptographicAttributeObjectCollection ^ UnprotectedAttributes { System::Security::Cryptography::CryptographicAttributeObjectCollection ^ get(); };
public System.Security.Cryptography.CryptographicAttributeObjectCollection UnprotectedAttributes { get; }
member this.UnprotectedAttributes : System.Security.Cryptography.CryptographicAttributeObjectCollection
Public ReadOnly Property UnprotectedAttributes As CryptographicAttributeObjectCollection

Property Value

The collection of unprotected (unencrypted) attributes associated with the enveloped CMS/PKCS#7 message.

Remarks

When the EnvelopedCms class is being used to to encrypt data, the contents of this collection are embedded into the pending message during the call to one of the Encrypt methods. Changes after the encryption operation have no effect.

The value of this property is replaced with a different collection object during a call to Decode, which then represents the attributes which were attached to the message without being encrypted.

Applies to