StringArrayConverter.ConvertTo Method (ITypeDescriptorContext, CultureInfo, Object, Type)

Converts an array of strings into a string of values separated by commas.

Namespace: System.Web.UI.WebControls
Assembly: System.Web (in system.web.dll)

public:
virtual Object^ ConvertTo (
	ITypeDescriptorContext^ context, 
	CultureInfo^ culture, 
	Object^ value, 
	Type^ destinationType
) override
public Object ConvertTo (
	ITypeDescriptorContext context, 
	CultureInfo culture, 
	Object value, 
	Type destinationType
)
public override function ConvertTo (
	context : ITypeDescriptorContext, 
	culture : CultureInfo, 
	value : Object, 
	destinationType : Type
) : Object
Not applicable.

Parameters

context

An ITypeDescriptorContext object that provides a format context that can be used to extract additional information about the environment from which this converter is invoked. This parameter or properties of this parameter can be a null reference (Nothing in Visual Basic).

culture

A CultureInfo object. If a null reference (Nothing in Visual Basic), the current culture is used.

value

The Object to convert.

destinationType

The Type to convert value to.

Return Value

An Object instance that represents the converted value.

Exception typeCondition

GetConvertToException

destinationType is not of type String.

The ConvertTo method converts an array of strings into a comma-separated string.

To convert a comma-separated string into an array of strings, use the ConvertFrom method.

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: