语言

RemoteWebConfigurationHostServer.DoEncryptOrDecrypt 方法

定义

有条件地加密或解密参数引用 xmlString 的字符串的值。

此 API 支持产品基础结构,不能在代码中直接使用。

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

参数

doEncrypt
Boolean

true 要加密; false 用于解密。

xmlString
String

要加密或解密的 XML。

protectionProviderName
String

用于保护配置数据的提供程序。

protectionProviderType
String

Type保护提供程序。

paramKeys
String[]

保护提供程序的可选参数的密钥。

paramValues
String[]

保护提供程序的可选参数的值。

返回

包含加密值或解密值的 xmlString字符串。

实现

例外

protectionProviderType 不派生自 ProtectedConfigurationProvider.

适用于

另请参阅