Redigera

Dela via


RoutedEventConverter.ConvertTo Method

Definition

Attempts to convert a RoutedEvent to the specified type. Throws an exception in all cases.

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

Parameters

typeDescriptorContext
ITypeDescriptorContext

A format context that provides information about the environment from which this converter is being invoked.

cultureInfo
CultureInfo

Culture specific information.

value
Object

The object to convert.

destinationType
Type

The type to convert the object to.

Returns

Always throws an exception.

Exceptions

value cannot be converted. This is not a functioning converter for a save path.

value or destinationType is null.

Applies to