Redigera

Dela via


IRemoteWebConfigurationHostServer.DoEncryptOrDecrypt Method

Definition

Conditionally encrypts or decrypts the value of the string referenced by the xmlString parameter.

This API supports the product infrastructure and is not intended to be used directly from your code.

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

Parameters

doEncrypt
Boolean

true to encrypt; false to decrypt.

xmlString
String

The XML to be encrypted or decrypted.

protectionProviderName
String

The provider used to protect the configuration data.

protectionProviderType
String

The Type of the protection provider.

parameterKeys
String[]

The keys of optional parameters for the protection provider.

parameterValues
String[]

The values of optional parameters for the protection provider.

Returns

A string containing either the encrypted or decrypted value of the xmlString.

Applies to