DelegatingConfigHost.EncryptSection(String, ProtectedConfigurationProvider, ProtectedConfigurationSection) Método

Definición

Cifra una sección de un objeto de configuración.Encrypts a section of a configuration object.

Esta API admite la infraestructura de producto y no está pensada para usarse directamente en el código.

public:
 virtual System::String ^ EncryptSection(System::String ^ clearTextXml, System::Configuration::ProtectedConfigurationProvider ^ protectionProvider, System::Configuration::ProtectedConfigurationSection ^ protectedConfigSection);
public:
 virtual System::String ^ EncryptSection(System::String ^ encryptedXml, System::Configuration::ProtectedConfigurationProvider ^ protectionProvider, System::Configuration::ProtectedConfigurationSection ^ protectedSection);
public virtual string EncryptSection (string clearTextXml, System.Configuration.ProtectedConfigurationProvider protectionProvider, System.Configuration.ProtectedConfigurationSection protectedConfigSection);
public virtual string EncryptSection (string encryptedXml, System.Configuration.ProtectedConfigurationProvider protectionProvider, System.Configuration.ProtectedConfigurationSection protectedSection);
abstract member EncryptSection : string * System.Configuration.ProtectedConfigurationProvider * System.Configuration.ProtectedConfigurationSection -> string
override this.EncryptSection : string * System.Configuration.ProtectedConfigurationProvider * System.Configuration.ProtectedConfigurationSection -> string
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
Public Overridable Function EncryptSection (encryptedXml As String, protectionProvider As ProtectedConfigurationProvider, protectedSection As ProtectedConfigurationSection) As String

Parámetros

clearTextXmlencryptedXml
String

Sección de la configuración que no está cifrada.A section of the configuration that is not encrypted.

protectionProvider
ProtectedConfigurationProvider

Objeto que contiene los proveedores que cifran y descifran los datos de configuración protegidos.An object containing the providers that encrypt and decrypt protected configuration data

protectedConfigSectionprotectedSection
ProtectedConfigurationSection

Objeto que proporciona acceso de mediante programación a la sección de configuración configProtectedData.An object that provides programatic access to the configProtectedData configuration section.

Devoluciones

String

Una cadena que representa una sección cifrada del objeto de configuración.A string representing an encrypted section of the configuration object.

Implementaciones

Se aplica a