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
)
public Object ConvertTo (
	ITypeDescriptorContext ctx, 
	CultureInfo ci, 
	Object value, 
	Type type
)
public override function ConvertTo (
	ctx : ITypeDescriptorContext, 
	ci : CultureInfo, 
	value : Object, 
	type : Type
) : Object
Not applicable.

Parameters

ctx

This parameter is not used.

ci

This parameter is not used.

value

The MachineKeyValidation to be converted.

type

This parameter is not used.

Return Value

A string representing a MachineKeyValidation value.

Exception typeCondition

ArgumentOutOfRangeException

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

ArgumentException

The value parameter is not a MachineKeyValidation object.

Windows 98, Windows Server 2000 SP4, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

The Microsoft .NET Framework 3.0 is supported on Windows Vista, Microsoft Windows XP SP2, and Windows Server 2003 SP1.

.NET Framework

Supported in: 3.0, 2.0

Community Additions

ADD
Show: