Επεξεργασία

Κοινή χρήση μέσω


DataBindingCollectionConverter.ConvertTo Method

Definition

Converts a data binding collection to the specified type.

public:
 override System::Object ^ ConvertTo(System::ComponentModel::ITypeDescriptorContext ^ context, System::Globalization::CultureInfo ^ culture, System::Object ^ value, Type ^ destinationType);
public override object ConvertTo (System.ComponentModel.ITypeDescriptorContext context, System.Globalization.CultureInfo culture, object value, Type destinationType);
override this.ConvertTo : System.ComponentModel.ITypeDescriptorContext * System.Globalization.CultureInfo * obj * Type -> obj
Public Overrides Function ConvertTo (context As ITypeDescriptorContext, culture As CultureInfo, value As Object, destinationType As Type) As Object

Parameters

context
ITypeDescriptorContext

An ITypeDescriptorContext that indicates the component or control to which the data binding collection belongs.

culture
CultureInfo

A CultureInfo that can be used to provide additional culture information.

value
Object

The object to convert.

destinationType
Type

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 ConvertTo method of the base TypeConverter class.

Applies to