ConvertTo Method (ITypeDescriptorContext, CultureInfo, Object, Type)
Collapse the table of content
Expand the table of content

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 override object ConvertTo(
	ITypeDescriptorContext ctx,
	CultureInfo ci,
	object value,
	Type type
)

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:
© 2016 Microsoft