DataBindingCollectionConverter.ConvertTo Method (ITypeDescriptorContext, CultureInfo, Object, Type)
.NET Framework 3.0
Converts a data binding collection to the specified type.
Namespace: System.Web.UI.Design
Assembly: System.Design (in system.design.dll)
Assembly: System.Design (in system.design.dll)
public: virtual Object^ ConvertTo ( ITypeDescriptorContext^ context, CultureInfo^ culture, Object^ value, Type^ destinationType ) override
public Object ConvertTo ( ITypeDescriptorContext context, CultureInfo culture, Object value, Type destinationType )
public override function ConvertTo ( context : ITypeDescriptorContext, culture : CultureInfo, value : Object, destinationType : Type ) : Object
Not applicable.
Parameters
- context
An ITypeDescriptorContext that indicates the component or control to which the data binding collection belongs.
- culture
A CultureInfo that can be used to provide additional culture information.
- value
The object to convert.
- destinationType
The type to convert to.
Return Value
The object produced by the type conversion. If the destinationType parameter is of type String, this method returns an empty string ("").This method returns an empty string if the destinationType parameter is of type String. Otherwise this method calls the ConvertTo method of the base TypeConverter class.
Community Additions
ADD
Show: