IInternalConfigHost.DecryptSection Method (String, ProtectedConfigurationProvider, ProtectedConfigurationSection)

 

Decrypts an encrypted configuration section and returns it as a string.

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

string DecryptSection(
	string encryptedXml,
	ProtectedConfigurationProvider protectionProvider,
	ProtectedConfigurationSection protectedConfigSection
)

Parameters

encryptedXml
Type: System.String

An encrypted XML string representing a configuration section.

protectionProvider
Type: System.Configuration.ProtectedConfigurationProvider

The ProtectedConfigurationProvider object.

protectedConfigSection
Type: System.Configuration.ProtectedConfigurationSection

The ProtectedConfigurationSection object.

Return Value

Type: System.String

A decrypted configuration section as a string.

.NET Framework
Available since 2.0
Return to top
Show: