Modifier

Partager via


ExpressionsCollectionConverter.ConvertTo Method

Definition

Converts an expression 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 object that indicates the component or control the expression binding collection belongs to.

culture
CultureInfo

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

value
Object

The object to convert.

destinationType
Type

The type to convert to.

Returns

If destinationType is not of type String, the object produced by the type conversion; otherwise, if destinationType is a string, an empty string ("").

Remarks

Note

You should never access a type converter directly. This implementation of TypeConverter is intended only for use by an ExpressionBindingCollection object at design time.

Applies to

See also