This documentation is archived and is not being maintained.
RemoteWebConfigurationHostServer::DoEncryptOrDecrypt Method
Visual Studio 2010
This API 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.
Assembly: System.Web (in System.Web.dll)
public: virtual String^ DoEncryptOrDecrypt( bool doEncrypt, String^ xmlString, String^ protectionProviderName, String^ protectionProviderType, array<String^>^ paramKeys, array<String^>^ paramValues ) sealed
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.
- paramKeys
- Type: array<System::String>
The keys of optional parameters for the protection provider.
- paramValues
- Type: array<System::String>
The values of optional parameters for the protection provider.
Return Value
Type: System::StringA string that contains either the encrypted or decrypted value of xmlString.
Implements
IRemoteWebConfigurationHostServer::DoEncryptOrDecrypt(Boolean, String, String, String, array<String>, array<String>)| Exception | Condition |
|---|---|
| Exception | protectionProviderType does not derive from ProtectedConfigurationProvider. |
Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows XP SP2 x64 Edition, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2
The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.
Show: