DpapiProtectedConfigurationProvider::Decrypt Method (XmlNode^)

 

Decrypts the passed XmlNode object.

Namespace:   System.Configuration
Assembly:  System.Configuration (in System.Configuration.dll)

public:
virtual XmlNode^ Decrypt(
	XmlNode^ encryptedNode
) override

Parameters

encryptedNode
Type: System.Xml::XmlNode^

The XmlNode object to decrypt.

Return Value

Type: System.Xml::XmlNode^

A decrypted XmlNode object.

Exception Condition
ConfigurationErrorsException

encryptedNode does not have Name set to "EncryptedData" and XmlNodeType set to Element.

- or -

encryptedNode does not have a child node named "CipherData" with a child node named "CipherValue".

- or -

The child node named "CipherData" is an empty node.

.NET Framework
Available since 2.0
Return to top
Show: