IRemoteWebConfigurationHostServer.DoEncryptOrDecrypt Method (Boolean, String, String, String, String[], String[])
.NET Framework (current version)
This API supports the product infrastructure and is not intended to be used directly from your code.
Conditionally encrypts or decrypts the value of the string referenced by the xmlString parameter.
Assembly: System.Web (in System.Web.dll)
string DoEncryptOrDecrypt( bool doEncrypt, string xmlString, string protectionProviderName, string protectionProviderType, string[] parameterKeys, string[] parameterValues )
Parameters
- doEncrypt
-
Type:
System.Boolean
True to encrypt; false to decrypt.
- xmlString
-
Type:
System.String
The XML to be encrypted or decrypted.
- protectionProviderName
-
Type:
System.String
The provider used to protect the configuration data.
- protectionProviderType
-
Type:
System.String
The Type of the protection provider.
- parameterKeys
-
Type:
System.String[]
The keys of optional parameters for the protection provider.
- parameterValues
-
Type:
System.String[]
The values of optional parameters for the protection provider.
Return Value
Type: System.StringA string containing either the encrypted or decrypted value of the xmlString.
.NET Framework
Available since 2.0
Available since 2.0
Show: