Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All

IRemoteWebConfigurationHostServer.DoEncryptOrDecrypt Method

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.

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

'Declaration
Function DoEncryptOrDecrypt ( _
	doEncrypt As Boolean, _
	xmlString As String, _
	protectionProviderName As String, _
	protectionProviderType As String, _
	parameterKeys As String(), _
	parameterValues As String() _
) As String

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.String
A string containing either the encrypted or decrypted value of the xmlString.

.NET Framework

Supported in: 4.6, 4.5, 4, 3.5, 3.0, 2.0
Show:
© 2015 Microsoft