Επεξεργασία

Κοινή χρήση μέσω


DelegatingConfigHost.EncryptSection Method

Definition

Encrypts a section of a configuration object.

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

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

Parameters

clearTextXml
String

A section of the configuration that is not encrypted.

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 an encrypted section of the configuration object.

Implements

Applies to