IRemoteWebConfigurationHostServer.DoEncryptOrDecrypt Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.
- 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
.