Share via


IRemoteWebConfigurationHostServer.DoEncryptOrDecrypt Méthode

Définition

Chiffre ou déchiffre de manière conditionnelle la valeur de la chaîne référencée par le paramètre xmlString.

Cette API prend en charge l'infrastructure du produit et n'est pas destinée à être utilisée directement à partir de votre code.

public:
 System::String ^ DoEncryptOrDecrypt(bool doEncrypt, System::String ^ xmlString, System::String ^ protectionProviderName, System::String ^ protectionProviderType, cli::array <System::String ^> ^ parameterKeys, cli::array <System::String ^> ^ parameterValues);
public string DoEncryptOrDecrypt (bool doEncrypt, string xmlString, string protectionProviderName, string protectionProviderType, string[] parameterKeys, string[] parameterValues);
abstract member DoEncryptOrDecrypt : bool * string * string * string * string[] * string[] -> string
Public Function DoEncryptOrDecrypt (doEncrypt As Boolean, xmlString As String, protectionProviderName As String, protectionProviderType As String, parameterKeys As String(), parameterValues As String()) As String

Paramètres

doEncrypt
Boolean

true pour chiffrer ; false pour déchiffrer.

xmlString
String

Code XML à chiffrer ou à déchiffrer.

protectionProviderName
String

Fournisseur utilisé pour protéger les données de configuration.

protectionProviderType
String

Type du fournisseur de protection.

parameterKeys
String[]

Clés des paramètres optionnels pour le fournisseur de protection.

parameterValues
String[]

Valeurs des paramètres optionnels pour le fournisseur de protection.

Retours

Chaîne contenant la valeur chiffrée ou déchiffrée de xmlString.

S’applique à