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[]

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

返回

String

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

实现

例外

protectionProviderType 并非派生自 ProtectedConfigurationProvider

适用于

另请参阅