RoutedEventConverter.ConvertTo Méthode

Définition

Tente de convertir RoutedEvent dans le type spécifié. Lève une exception dans tous les cas.

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

Paramètres

typeDescriptorContext
ITypeDescriptorContext

Contexte de format qui fournit des informations sur l'environnement à partir duquel ce convertisseur est appelé.

cultureInfo
CultureInfo

Informations propres à la culture.

value
Object

Objet à convertir.

destinationType
Type

Type dans lequel convertir l'objet.

Retours

Lève toujours une exception.

Exceptions

value ne peut pas être converti. Ce convertisseur ne fonctionne pas pour un chemin d’enregistrement.

value ou destinationType est null.

S’applique à