StringArrayConverter.ConvertFrom Method (ITypeDescriptorContext, CultureInfo, Object)

Converts the specified comma-separated string into an array of strings.

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

public:
virtual Object^ ConvertFrom (
	ITypeDescriptorContext^ context, 
	CultureInfo^ culture, 
	Object^ value
) override
public Object ConvertFrom (
	ITypeDescriptorContext context, 
	CultureInfo culture, 
	Object value
)
public override function ConvertFrom (
	context : ITypeDescriptorContext, 
	culture : CultureInfo, 
	value : Object
) : 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.

Return Value

An Object that represents the converted value.

Exception typeCondition

GetConvertFromException

The conversion cannot be performed because value is not a string.

The ConvertFrom method parses an object that represents a comma-separated string into an array of strings. Prior to calling this method, you can call the CanConvertFrom method to determine whether the object specified by value can be converted to an array of strings.

To convert an array of strings into a comma-separated string, use the ConvertTo 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: