共用方式為


IRemoteWebConfigurationHostServer.DoEncryptOrDecrypt 方法

定義

條件式加密或解密由 xmlString 參數所參考的字串值。

此 API 支援此產品基礎結構,但無法直接用於程式碼之中。

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

參數

doEncrypt
Boolean

true 表示加密,false 表示解密。

xmlString
String

要加密或解密的 XML。

protectionProviderName
String

用於保護組態資料的提供者。

protectionProviderType
String

保護提供者的 Type

parameterKeys
String[]

保護提供者之選擇性參數的索引鍵。

parameterValues
String[]

保護提供者之選擇性參數的值。

傳回

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

適用於