Edit

Share via


DelegatingConfigHost.DecryptSection Method

Definition

Decrypts an encrypted configuration section.

This API supports the product infrastructure and is not intended to be used directly from your code.

public:
 virtual System::String ^ DecryptSection(System::String ^ encryptedXml, System::Configuration::ProtectedConfigurationProvider ^ protectionProvider, System::Configuration::ProtectedConfigurationSection ^ protectedConfigSection);
public virtual string DecryptSection (string encryptedXml, System.Configuration.ProtectedConfigurationProvider protectionProvider, System.Configuration.ProtectedConfigurationSection protectedConfigSection);
abstract member DecryptSection : string * System.Configuration.ProtectedConfigurationProvider * System.Configuration.ProtectedConfigurationSection -> string
override this.DecryptSection : string * System.Configuration.ProtectedConfigurationProvider * System.Configuration.ProtectedConfigurationSection -> string
Public Overridable Function DecryptSection (encryptedXml As String, protectionProvider As ProtectedConfigurationProvider, protectedConfigSection As ProtectedConfigurationSection) As String

Parameters

encryptedXml
String

An encrypted section of a configuration file.

protectionProvider
ProtectedConfigurationProvider

An object containing the providers that encrypt and decrypt protected configuration data.

protectedConfigSection
ProtectedConfigurationSection

An object that provides programatic access to the configProtectedData configuration section.

Returns

A string representing a decrypted configuration section.

Implements

Applies to