This documentation is archived and is not being maintained.

IRemoteWebConfigurationHostServer.DoEncryptOrDecrypt Method

This method supports the .NET Framework 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.

Namespace: System.Web.Configuration
Assembly: System.Web (in system.web.dll)

string DoEncryptOrDecrypt (
	bool doEncrypt,
	string xmlString,
	string protectionProviderName,
	string protectionProviderType,
	string[] parameterKeys,
	string[] parameterValues
String DoEncryptOrDecrypt (
	boolean doEncrypt, 
	String xmlString, 
	String protectionProviderName, 
	String protectionProviderType, 
	String[] parameterKeys, 
	String[] parameterValues
function DoEncryptOrDecrypt (
	doEncrypt : boolean, 
	xmlString : String, 
	protectionProviderName : String, 
	protectionProviderType : String, 
	parameterKeys : String[], 
	parameterValues : String[]
) : String
Not applicable.



True to encrypt; false to decrypt.


The XML to be encrypted or decrypted.


The provider used to protect the configuration data.


The Type of the protection provider.


The keys of optional parameters for the protection provider.


The values of optional parameters for the protection provider.

Return Value

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

Windows 98, Windows Server 2000 SP4, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

The Microsoft .NET Framework 3.0 is supported on Windows Vista, Microsoft Windows XP SP2, and Windows Server 2003 SP1.

.NET Framework

Supported in: 3.0, 2.0