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.

C#
public string DoEncryptOrDecrypt(bool doEncrypt, string xmlString, string protectionProviderName, string protectionProviderType, string[] parameterKeys, string[] parameterValues);

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

Product Versions
.NET Framework 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1