System.Web.UI.WebControls.StringArrayConverter.ConvertFrom Method

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

Syntax

public override object ConvertFrom (System.ComponentModel.ITypeDescriptorContext context, System.Globalization.CultureInfo culture, object value)

Parameters

context
An System.ComponentModel.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 null.
culture
A System.Globalization.CultureInfo object. If null, the current culture is used.
value
The object to convert.

Returns

An object that represents the converted value.

Remarks

The StringArrayConverter.ConvertFrom(System.ComponentModel.ITypeDescriptorContext, System.Globalization.CultureInfo, object) method parses an object that represents a comma-separated string into an array of strings. Prior to calling this method, you can call the StringArrayConverter.CanConvertFrom(System.ComponentModel.ITypeDescriptorContext, Type) 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 StringArrayConverter.ConvertTo(System.ComponentModel.ITypeDescriptorContext, System.Globalization.CultureInfo, object, Type) method.

Requirements

Namespace: System.Web.UI.WebControls
Assembly: System.Web (in System.Web.dll)
Assembly Versions: 2.0.0.0
Since: .NET 2.0