Share via


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 の暗号化した値または復号化した値を格納する文字列。

実装

例外

protectionProviderTypeProtectedConfigurationProvider から派生されませn。

適用対象

こちらもご覧ください