Langue

RemoteWebConfigurationHostServer.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 xmlString paramètre.

Cette API prend en charge l’infrastructure du produit et n’est pas destinée à être utilisée directement à partir de votre 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

Paramètres

doEncrypt
Boolean

true pour chiffrer ; false pour déchiffrer.

xmlString
String

Xml à chiffrer ou déchiffrer.

protectionProviderName
String

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

protectionProviderType
String

Fournisseur Type de protection.

paramKeys
String[]

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

paramValues
String[]

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

Retours

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

Implémente

Exceptions

protectionProviderType ne dérive pas de ProtectedConfigurationProvider.

S’applique à

Voir aussi