System.Web.UI.Design.DataBindingCollectionConverter.ConvertTo Method

Converts a data binding collection to the specified type.

Syntax

public override object ConvertTo (System.ComponentModel.ITypeDescriptorContext context, System.Globalization.CultureInfo culture, object value, Type destinationType)

Parameters

context
An System.ComponentModel.ITypeDescriptorContext that indicates the component or control to which the data binding collection belongs.
culture
A System.Globalization.CultureInfo that can be used to provide additional culture information.
value
The object to convert.
destinationType
The type to convert to.

Returns

The object produced by the type conversion. If the destinationType parameter is of type string, this method returns an empty string ("").

Remarks

This method returns an empty string if the destinationType parameter is of type string. Otherwise this method calls the System.ComponentModel.TypeConverter.ConvertTo(object, Type) method of the base System.ComponentModel.TypeConverter class.

Requirements

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