System.Web.Configuration.MachineKeyValidationConverter.ConvertFrom Method

Converts a string to the equivalent System.Web.Configuration.MachineKeyValidation value.

Syntax

public override object ConvertFrom (System.ComponentModel.ITypeDescriptorContext ctx, System.Globalization.CultureInfo ci, object data)

Parameters

ctx
This parameter is not used.
ci
This parameter is not used.
data
The string to convert.

Returns

The equivalent System.Web.Configuration.MachineKeyValidation value.

Remarks

This method will throw an ArgumentException exception if the data parameter does not refer to one of the following strings:

  • SHA1

  • MD5

  • 3DES

  • AES

Requirements

Namespace: System.Web.Configuration
Assembly: System.Web (in System.Web.dll)
Assembly Versions: 2.0.0.0
Since: .NET 2.0