MachineKeyValidationConverter::ConvertTo Method (ITypeDescriptorContext^, CultureInfo^, Object^, Type^)

 

Converts a MachineKeyValidation value to the string representation of that value.

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

public:
virtual Object^ ConvertTo(
	ITypeDescriptorContext^ ctx,
	CultureInfo^ ci,
	Object^ value,
	Type^ type
) override

Parameters

ctx
Type: System.ComponentModel::ITypeDescriptorContext^

This parameter is not used.

ci
Type: System.Globalization::CultureInfo^

This parameter is not used.

value
Type: System::Object^

The MachineKeyValidation to be converted.

type
Type: System::Type^

This parameter is not used.

Return Value

Type: System::Object^

A string representing a MachineKeyValidation value.

Exception Condition
ArgumentOutOfRangeException

The value parameter is not one of the expected enumerated values.

ArgumentException

The value parameter is not a MachineKeyValidation object.

.NET Framework
Available since 2.0
Return to top
Show: