Editar

Compartilhar via


RemoteWebConfigurationHostServer.DoEncryptOrDecrypt Method

Definition

Conditionally encrypts or decrypts the value of the string referenced by the xmlString parameter.

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

public:
 virtual System::String ^ DoEncryptOrDecrypt(bool doEncrypt, System::String ^ xmlString, System::String ^ protectionProviderName, System::String ^ protectionProviderType, cli::array <System::String ^> ^ paramKeys, cli::array <System::String ^> ^ paramValues);
public string DoEncryptOrDecrypt (bool doEncrypt, string xmlString, string protectionProviderName, string protectionProviderType, string[] paramKeys, string[] paramValues);
abstract member DoEncryptOrDecrypt : bool * string * string * string * string[] * string[] -> string
override this.DoEncryptOrDecrypt : bool * string * string * string * string[] * string[] -> string
Public Function DoEncryptOrDecrypt (doEncrypt As Boolean, xmlString As String, protectionProviderName As String, protectionProviderType As String, paramKeys As String(), paramValues As String()) As String

Parameters

doEncrypt
Boolean

true to encrypt; false to decrypt.

xmlString
String

The XML to be encrypted or decrypted.

protectionProviderName
String

The provider used to protect the configuration data.

protectionProviderType
String

The Type of the protection provider.

paramKeys
String[]

The keys of optional parameters for the protection provider.

paramValues
String[]

The values of optional parameters for the protection provider.

Returns

A string that contains either the encrypted or decrypted value of xmlString.

Implements

Exceptions

protectionProviderType does not derive from ProtectedConfigurationProvider.

Applies to

See also