StringArrayConverter.ConvertFrom Method (ITypeDescriptorContext, CultureInfo, Object)

Note: This method is new in the .NET Framework version 2.0.

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

Parameters

context

An ITypeDescriptorContext 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

NotSupportedException

The conversion cannot be performed because the value parameter 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 the value parameter 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 2000 SP4, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see System Requirements.

.NET Framework

Supported in: 2.0

Community Additions

ADD
Show: