System.Web.UI.Design.DataColumnSelectionConverter.ConvertFrom Method

Converts the specified object to the type of the associated control property.

Syntax

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

Parameters

context
An System.ComponentModel.ITypeDescriptorContext implementation that can be used to gain additional context information.
culture
The System.Globalization.CultureInfo object that can be used to support localization features.
value
The object to convert.

Returns

An object instance that represents the converted object.

Remarks

If value is a string, then the string representation of value is returned. If value is null, an empty string ("") is returned. For all other values, a NotSupportedException exception is thrown.

Call the DataColumnSelectionConverter.CanConvertFrom(System.ComponentModel.ITypeDescriptorContext, Type) method to determine whether the DataColumnSelectionConverter.ConvertFrom(System.ComponentModel.ITypeDescriptorContext, System.Globalization.CultureInfo, object) method supports converting the source type.

Requirements

Namespace: System.Web.UI.Design
Assembly: System.Design (in System.Design.dll)
Assembly Versions: 2.0.0.0