EncryptionProperty Class
Represents the <EncryptionProperty> element used in XML encryption. This class cannot be inherited.
Assembly: System.Security (in System.Security.dll)
| Name | Description | |
|---|---|---|
![]() | EncryptionProperty() | Initializes a new instance of the EncryptionProperty class. |
![]() | EncryptionProperty(XmlElement^) | Initializes a new instance of the EncryptionProperty class using an XmlElement object. |
| Name | Description | |
|---|---|---|
![]() | Id | Gets the ID of the current EncryptionProperty object. |
![]() | PropertyElement | Gets or sets an XmlElement object that represents an EncryptionProperty object. |
![]() | Target | Gets the target of the EncryptionProperty object. |
| Name | Description | |
|---|---|---|
![]() | Equals(Object^) | Determines whether the specified object is equal to the current object.(Inherited from Object.) |
![]() | GetHashCode() | Serves as the default hash function. (Inherited from Object.) |
![]() | GetType() | |
![]() | GetXml() | Returns an XmlElement object that encapsulates an instance of the EncryptionProperty class. |
![]() | LoadXml(XmlElement^) | Parses the input XmlElement and configures the internal state of the EncryptionProperty object to match. |
![]() | ToString() | Returns a string that represents the current object.(Inherited from Object.) |
The EncryptionProperty class encapsulates the <EncryptionProperty> element defined by the World Wide Web Consortium XML Encryption specification located at http://www.w3.org/TR/xmlenc-core/.
Use the EncryptionProperty class to provide additional encryption information related to the EncryptedData and EncryptedKey elements. For example, use this class to specify a time stamp.
The following code example encrypts and decrypts an XML document. This code example creates an EncryptionProperty object that contains custom information about the EncryptedKey element, and adds the EncryptionProperty object to the EncryptionPropertyCollection collection of the EncryptedXml class. Finally, this code example displays information about the EncryptionProperty object and the EncryptionPropertyCollection collection.
Available since 2.0
Any public static ( Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

