IInternalConfigHost.EncryptSection Method (String, ProtectedConfigurationProvider, ProtectedConfigurationSection)

 

Encrypts a configuration section and returns it as a string.

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

string EncryptSection(
	string clearTextXml,
	ProtectedConfigurationProvider protectionProvider,
	ProtectedConfigurationSection protectedConfigSection
)

Parameters

clearTextXml
Type: System.String

An XML string representing a configuration section to encrypt.

protectionProvider
Type: System.Configuration.ProtectedConfigurationProvider

The ProtectedConfigurationProvider object.

protectedConfigSection
Type: System.Configuration.ProtectedConfigurationSection

The ProtectedConfigurationSection object.

Return Value

Type: System.String

An encrypted configuration section represented as a string.

.NET Framework
Available since 2.0
Return to top
Show: