RemoteWebConfigurationHostServer.DoEncryptOrDecrypt Method (Boolean, String, String, String, String[], String[])

 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

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.

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

public string DoEncryptOrDecrypt(
	bool doEncrypt,
	string xmlString,
	string protectionProviderName,
	string protectionProviderType,
	string[] paramKeys,
	string[] paramValues
)

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: System.String[]

The keys of optional parameters for the protection provider.

paramValues
Type: System.String[]

The values of optional parameters for the protection provider.

Return Value

Type: System.String

A string that contains either the encrypted or decrypted value of xmlString.

Exception Condition
Exception

protectionProviderType does not derive from ProtectedConfigurationProvider.

.NET Framework
Available since 2.0
Return to top
Show: