TypeConverter.GetConvertToException(Object, Type) Méthode
Définition
Important
Certaines informations portent sur la préversion du produit qui est susceptible d’être en grande partie modifiée avant sa publication. Microsoft exclut toute garantie, expresse ou implicite, concernant les informations fournies ici.
Retourne une exception à lever quand une conversion ne peut pas être effectuée.
protected:
Exception ^ GetConvertToException(System::Object ^ value, Type ^ destinationType);
protected Exception GetConvertToException (object value, Type destinationType);
protected Exception GetConvertToException (object? value, Type destinationType);
member this.GetConvertToException : obj * Type -> Exception
Protected Function GetConvertToException (value As Object, destinationType As Type) As Exception
Paramètres
Retours
Exception représentant l'exception à lever lorsqu'une conversion ne peut pas être effectuée.
Exceptions
Automatiquement levée par cette méthode.